From: Christian Brauner Date: Wed, 4 Jan 2023 15:45:03 +0000 (+0100) Subject: build: force linking against liblxc X-Git-Tag: v6.0.0~75^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F4250%2Fhead;p=thirdparty%2Flxc.git build: force linking against liblxc We really need to split up our code into better chunks so we avoid all of this duplicated compilation. Fixes: https://github.com/lxc/lxc/issues/4249 Signed-off-by: Christian Brauner (Microsoft) --- diff --git a/meson.build b/meson.build index 9bf328215..63bce420c 100644 --- a/meson.build +++ b/meson.build @@ -10,7 +10,7 @@ project( 'b_lto=true', 'b_lto_mode=thin', 'b_colorout=always', - 'b_asneeded=true', + 'b_asneeded=false', 'b_pie=true', 'b_staticpic=true', 'c_std=gnu11', @@ -221,6 +221,7 @@ possible_cc_flags = [ ] possible_link_flags = [ + '-Wl,--no-as-needed', '-Wl,--gc-sections', '-Wl,-z,relro', '-Wl,-z,now',