]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
build: set pie in default_options
authorChristian Brauner <christian.brauner@ubuntu.com>
Mon, 13 Sep 2021 07:43:29 +0000 (09:43 +0200)
committerChristian Brauner <christian.brauner@ubuntu.com>
Mon, 13 Sep 2021 07:43:29 +0000 (09:43 +0200)
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
meson.build

index 16f94bc317cda2924719bc909036c21717c40458..b4fb9c70e38331b5eb0bebf455ad0f929f49ff66 100644 (file)
@@ -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',
 ]