]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
build: force linking against liblxc
authorChristian Brauner <brauner@kernel.org>
Wed, 4 Jan 2023 15:45:03 +0000 (16:45 +0100)
committerStéphane Graber <stgraber@ubuntu.com>
Fri, 6 Jan 2023 22:15:12 +0000 (17:15 -0500)
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 27540875672b6c94e2e593f9cd8c5a76674b1dbd..137854bda336ec91f3cd90f22559b37da092d08a 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',
@@ -220,6 +220,7 @@ possible_cc_flags = [
 ]
 
 possible_link_flags = [
+    '-Wl,--no-as-needed',
     '-Wl,--gc-sections',
     '-Wl,-z,relro',
     '-Wl,-z,now',