From 592900dfa43c690c8b21591c08c40e9c8bb04e67 Mon Sep 17 00:00:00 2001 From: "\"Steven J. Hill\"" Date: Sat, 26 Jan 2008 23:13:37 +0000 Subject: Filter out '-std=gnu99' when running the assembler. This causes an error when building MIPS that looks like this: libc/string/mips/memcpy.S:156:1: pasting "memcpy" and ":" does not give a valid preprocessing token make[1]: *** [libc/string/mips/memcpy.os] Error 1 Even if this does not cause an error on other architectures, this option should not be having an effect on preprocessed assembly code. --- Makerules | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Makerules') diff --git a/Makerules b/Makerules index 2a4f39d41..a4c02e3a3 100644 --- a/Makerules +++ b/Makerules @@ -96,7 +96,7 @@ disp_ar = $($(DISP)_disp_ar) disp_ld = $($(DISP)_disp_ld) cmd_compile.c = $(CC) -c $< -o $@ $(CFLAGS) $(ARCH_CFLAGS) $(CFLAGS-$(suffix $@)) $(filter-out $(CFLAGS-OMIT-$(notdir $<)),$(CFLAGS-$(notdir $(^D)))) $(CFLAGS-$(subst $(top_srcdir),,$(dir $<))) $(CFLAGS-$(notdir $<)) $(CFLAGS-$(notdir $@)) -cmd_compile.S = $(cmd_compile.c) -D__ASSEMBLER__ $(ASFLAGS) $(ARCH_ASFLAGS) $(ASFLAGS-$(suffix $@)) $(ASFLAGS-$(notdir $<)) $(ASFLAGS-$(notdir $@)) +cmd_compile.S = $(filter-out -std=gnu99, $(cmd_compile.c)) -D__ASSEMBLER__ $(ASFLAGS) $(ARCH_ASFLAGS) $(ASFLAGS-$(suffix $@)) $(ASFLAGS-$(notdir $<)) $(ASFLAGS-$(notdir $@)) cmd_compile.m = $(cmd_compile.c) -DL_$(patsubst %$(suffix $(notdir $@)),%,$(notdir $@)) cmd_compile-m = $(CC) $^ -c -o $@ $(CFLAGS) $(ARCH_CFLAGS) $(CFLAGS-$(suffix $@)) $(CFLAGS-$(notdir $(@D))) $(CFLAGS-$(notdir $@)) cmd_strip = $(STRIPTOOL) $(STRIP_FLAGS) $^ -- cgit v1.2.3