]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
build: force linking against liblxc 4250/head
authorChristian Brauner <brauner@kernel.org>
Wed, 4 Jan 2023 15:45:03 +0000 (16:45 +0100)
committerChristian Brauner (Microsoft) <christian.brauner@ubuntu.com>
Wed, 4 Jan 2023 15:45:03 +0000 (16:45 +0100)
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) <christian.brauner@ubuntu.com>
meson.build

index 9bf3282153889dde470d0d85c6a37e1d10c0899a..63bce420c9a1f080090ef4e3827f308eea5811f2 100644 (file)
@@ -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',