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) <christian.brauner@ubuntu.com>
This commit is contained in:
Christian Brauner 2023-01-04 16:45:03 +01:00 committed by Christian Brauner (Microsoft)
parent 0b83d71c2c
commit a8e1070c61
No known key found for this signature in database
GPG Key ID: 91C61BC06578DCA2

View 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',