kbuild: uapi: use -fsyntax-only rather than -S
[linux-2.6-microblaze.git] / usr / include / Makefile
index fa9819e..f621e60 100644 (file)
@@ -92,7 +92,7 @@ always-y := $(patsubst $(obj)/%.h,%.hdrtest, $(shell find $(obj) -name '*.h' 2>/
 # Include the header twice to detect missing include guard.
 quiet_cmd_hdrtest = HDRTEST $<
       cmd_hdrtest = \
-               $(CC) $(c_flags) -S -o /dev/null -x c /dev/null \
+               $(CC) $(c_flags) -fsyntax-only -x c /dev/null \
                        $(if $(filter-out $(no-header-test), $*.h), -include $< -include $<); \
                $(PERL) $(srctree)/$(src)/headers_check.pl $(obj) $(SRCARCH) $<; \
                touch $@