From: Martin Valgur Date: Tue, 15 Apr 2025 13:19:21 +0000 (+0300) Subject: meson: fix a bug in posixipc_libs configuration X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=946c0b9c6f6481ed9370b8bd0f54a622a0c4a574;p=thirdparty%2Futil-linux.git meson: fix a bug in posixipc_libs configuration Should append instead of assigning. Otherwise fails with meson.build:1482:22: ERROR: Object <[ExternalLibraryHolder] holds [ExternalLibrary]: > of type ExternalLibrary does not support the `+` operator. --- diff --git a/meson.build b/meson.build index 4b2cf1303..73fc086cc 100644 --- a/meson.build +++ b/meson.build @@ -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'