]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
meson: respect c_args/CFLAGS when generating syscalls/errnos
authorThomas Weißschuh <thomas@t-8ch.de>
Sat, 30 Mar 2024 16:29:18 +0000 (17:29 +0100)
committerThomas Weißschuh <thomas@t-8ch.de>
Sat, 30 Mar 2024 16:29:18 +0000 (17:29 +0100)
Fixes #2891

Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
meson.build

index 9600ce49f73d69045a9ddc304bb3570aec72a85e..48a82780b565d9ae64cab0fd29381a4d8cbeabde 100644 (file)
@@ -2708,7 +2708,7 @@ endif
 errnos_h = custom_target('errnos.h',
   input : 'tools/all_errnos',
   output : 'errnos.h',
-  command : ['tools/all_errnos', cc.cmd_array()]
+  command : ['tools/all_errnos', cc.cmd_array(), get_option('c_args')],
 )
 
 mq_libs = []
@@ -3026,7 +3026,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')