From ce944fef4ef26a9fd4cf6d95917b27161b32e628 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Sun, 2 Dec 2001 19:34:28 +0000 Subject: * mach/Makefile ($(objpfx)mach-syscalls.mk): Pass $(CFLAGS) to $(CC). * mach/Machrules ($(objpfx)%.udeps static pattern rule): Likewise. Reported by Jeff Bailey . --- mach/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'mach/Makefile') diff --git a/mach/Makefile b/mach/Makefile index 7e32034..444c2ed 100644 --- a/mach/Makefile +++ b/mach/Makefile @@ -72,7 +72,8 @@ $(objpfx)mach-syscalls.mk: syscalls.awk Makefile $(make-target-directory) echo '#include ' | \ DEPENDENCIES_OUTPUT='$@-dep $@' \ - $(CC) $(CPPFLAGS) -E -x c-header - \ +# We must use $(CFLAGS) to get -O flags that affect #if's in header files. + $(CC) $(CFLAGS) $(CPPFLAGS) -E -x c-header - \ -D_MACH_`echo $(base-machine) | tr a-z A-Z`_SYSCALL_SW_H_=1 | \ sed -n -e 's/^kernel_trap(\(.*\),\([-0-9]*\),\([0-9]*\))$$/\1 \2 \3/p'\ | $(AWK) -f $< > $@-new -- cgit v1.1