]> git.proxmox.com Git - mirror_lxcfs.git/commitdiff
build: move some options to default_options
authorChristian Brauner <christian.brauner@ubuntu.com>
Mon, 13 Sep 2021 08:27:07 +0000 (10:27 +0200)
committerChristian Brauner <christian.brauner@ubuntu.com>
Mon, 13 Sep 2021 08:27:07 +0000 (10:27 +0200)
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
meson.build

index 58df88723f1f5fd34a3b29f10ea735053f0528b7..f58a10e669f967800b3bf5f924ba42f831b76995 100644 (file)
@@ -4,6 +4,9 @@ project('lxcfs', 'c',
         version : '4.0.0',
         license : 'LGPLv2+',
         default_options: [
+               'b_colorout=always',
+               'b_asneeded=true',
+               'b_pie=true',
                 'c_std=gnu11',
                 'warning_level=2',
         ],
@@ -49,10 +52,8 @@ meson_build_sh = find_program('tools/meson-build.sh')
 want_tests = get_option('tests')
 
 possible_cc_flags = [
-       '-fPIE',
        '-Wvla',
        '-std=gnu11',
-       '-fdiagnostics-color',
        '-Wimplicit-fallthrough=5',
        '-Wcast-align',
        '-Wstrict-prototypes',
@@ -91,11 +92,9 @@ possible_cc_flags = [
 ]
 
 possible_link_flags = [
-       '-Wl,--as-needed',
        '-Wl,--gc-sections',
        '-Wl,-z,relro',
        '-Wl,-z,now',
-       '-pie',
        '-Wl,-fuse-ld=gold',
 ]