]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
meson: respect c_args/CFLAGS when generating syscalls
authorKarel Zak <kzak@redhat.com>
Tue, 2 Apr 2024 06:39:40 +0000 (08:39 +0200)
committerKarel Zak <kzak@redhat.com>
Tue, 2 Apr 2024 06:39:40 +0000 (08:39 +0200)
References: http://github.com/util-linux/util-linux/commit/8e7f14391bab98b3ce83a2df27ebbf76c1b5a9fc
Signed-off-by: Karel Zak <kzak@redhat.com>
meson.build

index a5328e873d95b065961aac34e1dbeda19f95ec64..f46356ac66531c08c9ff115c8353f051140e0e74 100644 (file)
@@ -3015,7 +3015,7 @@ endif
 syscalls_h = custom_target('syscalls.h',
   input : 'tools/all_syscalls',
   output : 'syscalls.h',
-  command : ['tools/all_syscalls', cc.cmd_array()] 
+  command : ['tools/all_syscalls', cc.cmd_array(), get_option('c_args')
 )
 
 if cc.compiles(fs.read('include/audit-arch.h'), name : 'has AUDIT_ARCH_NATIVE')