From: Christian Brauner Date: Mon, 13 Sep 2021 07:43:29 +0000 (+0200) Subject: build: set pie in default_options X-Git-Tag: lxc-5.0.0~92^2~15 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=98f3b52712efbf5f9fa980fe7f7f2e6b8f11e144;p=thirdparty%2Flxc.git build: set pie in default_options Signed-off-by: Christian Brauner --- diff --git a/meson.build b/meson.build index 16f94bc31..b4fb9c70e 100644 --- a/meson.build +++ b/meson.build @@ -4,6 +4,7 @@ project('lxc', 'c', version : '4.0.0', license : 'LGPLv2+', default_options: [ + 'b_pie=true', 'c_std=gnu11', 'warning_level=2', ], @@ -92,7 +93,6 @@ cc = meson.get_compiler('c') pkgconfig = import('pkgconfig') possible_cc_flags = [ - '-fPIE', '-Wvla', '-fdiagnostics-color', '-Wimplicit-fallthrough=5', @@ -137,7 +137,6 @@ possible_link_flags = [ '-Wl,--gc-sections', '-Wl,-z,relro', '-Wl,-z,now', - '-pie', '-Wl,-fuse-ld=gold', ]