about summary refs log tree commit diff
path: root/mach/Machrules
diff options
context:
space:
mode:
Diffstat (limited to 'mach/Machrules')
-rw-r--r--mach/Machrules3
1 files changed, 2 insertions, 1 deletions
diff --git a/mach/Machrules b/mach/Machrules
index 90a7fcbae5..c575862d83 100644
--- a/mach/Machrules
+++ b/mach/Machrules
@@ -135,7 +135,8 @@ $(patsubst %,$(objpfx)%.udeps,$(user-interfaces)):
   $(objpfx)%.udeps: $(..)mach/Machrules
 	$(make-target-directory)
 	$(include-%.defs) | \
-	$(CC) $(CPPFLAGS) -M -x c - | \
+# We must use $(CFLAGS) to get -O flags that affect #if's in header files.
+	$(CC) $(CFLAGS) $(CPPFLAGS) -M -x c - | \
 	sed -e 's,- *:,$@ $(@:.udeps=.ustamp) $(@:.udeps=.uh) $(@:.udeps=.__h)\
 			  $(@:.udeps=_server.c) $(@:.udeps=_server.h):,' \
 	    $(sed-remove-objpfx) > $@.new