build: set as-needed in default_options

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
This commit is contained in:
Christian Brauner 2021-09-13 09:44:32 +02:00
parent 98f3b52712
commit 5e0a302b1e
No known key found for this signature in database
GPG Key ID: 8EB056D53EECB12D

View File

@ -4,6 +4,7 @@ project('lxc', 'c',
version : '4.0.0', version : '4.0.0',
license : 'LGPLv2+', license : 'LGPLv2+',
default_options: [ default_options: [
'b_asneeded=true',
'b_pie=true', 'b_pie=true',
'c_std=gnu11', 'c_std=gnu11',
'warning_level=2', 'warning_level=2',
@ -133,7 +134,6 @@ possible_cc_flags = [
] ]
possible_link_flags = [ possible_link_flags = [
'-Wl,--as-needed',
'-Wl,--gc-sections', '-Wl,--gc-sections',
'-Wl,-z,relro', '-Wl,-z,relro',
'-Wl,-z,now', '-Wl,-z,now',