]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
meson: fix a bug in posixipc_libs configuration
authorMartin Valgur <martin.valgur@gmail.com>
Tue, 15 Apr 2025 13:19:21 +0000 (16:19 +0300)
committerGitHub <noreply@github.com>
Tue, 15 Apr 2025 13:19:21 +0000 (16:19 +0300)
Should append instead of assigning. Otherwise fails with

meson.build:1482:22: ERROR: Object <[ExternalLibraryHolder] holds [ExternalLibrary]: <ExternalLibrary rt: True>> of type ExternalLibrary does not support the `+` operator.

meson.build

index 4b2cf130311ce90cda7d71450e6d291e57122113..73fc086cc84d8d78319ff587ed847e4b24dfbba0 100644 (file)
@@ -1486,7 +1486,7 @@ has_seminfo_type = cc.has_type('struct seminfo', args : '-D_GNU_SOURCE', prefix
 
 posixipc_libs = []
 if not cc.has_function('shm_open') and conf.get('HAVE_SYS_MMAN_H').to_string() == '1'
-  posixipc_libs = cc.find_library('rt', required : true)
+  posixipc_libs += cc.find_library('rt', required : true)
 endif
 
 if not cc.has_function('sem_close') and conf.get('HAVE_SEMAPHORE_H').to_string() == '1'