From a8e1070c61043b61f2e7436ec2ff67768ce638d3 Mon Sep 17 00:00:00 2001 From: Christian Brauner Date: Wed, 4 Jan 2023 16:45:03 +0100 Subject: [PATCH] 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) --- meson.build | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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', -- 2.47.2