forked from len0rd/rockbox
build: Nuke the ASMFLAGS workaround for gcc 3.4.x
Change-Id: I0f21e9539d39afd54916fa8d84ce798eef474a2c
This commit is contained in:
parent
2c984f3714
commit
2e9b93dc5d
5 changed files with 8 additions and 9 deletions
|
|
@ -11,7 +11,7 @@ $(OBJDIR)/%.o: %.c
|
|||
|
||||
$(OBJDIR)/%.o: %.S
|
||||
$(SILENT)mkdir -p $(dir $@)
|
||||
$(call PRINTS,CC $<)$(CC) $(CFLAGS) $(ASMFLAGS) -c $< -o $@
|
||||
$(call PRINTS,CC $<)$(CC) $(CFLAGS) -c $< -o $@
|
||||
|
||||
# The echo stuff last in the dep update shell magic is to prevent any compiler
|
||||
# errors/warnings to cause an error code to get returned and thus stop the
|
||||
|
|
|
|||
|
|
@ -16,7 +16,6 @@ INCLUDES = -I$(BUILDDIR) -I$(BUILDDIR)/lang $(TARGET_INC)
|
|||
|
||||
CFLAGS = $(INCLUDES) $(DEFINES) $(GCCOPTS)
|
||||
PPCFLAGS = $(filter-out -g -Dmain=SDL_main,$(CFLAGS)) # cygwin sdl-config fix
|
||||
ASMFLAGS = -D__ASSEMBLER__ # work around gcc 3.4.x bug with -std=gnu99, only meant for .S files
|
||||
CORE_LDOPTS = $(GLOBAL_LDOPTS) # linker ops specifically for core build
|
||||
|
||||
TOOLS = $(TOOLSDIR)/rdf2binary $(TOOLSDIR)/convbdf \
|
||||
|
|
@ -436,7 +435,7 @@ $(BUILDDIR)/%.o: $(ROOTDIR)/%.c
|
|||
|
||||
$(BUILDDIR)/%.o: $(ROOTDIR)/%.S
|
||||
$(SILENT)mkdir -p $(dir $@)
|
||||
$(call PRINTS,CC $(subst $(ROOTDIR)/,,$<))$(CC) $(CFLAGS) $(ASMFLAGS) -c $< -o $@
|
||||
$(call PRINTS,CC $(subst $(ROOTDIR)/,,$<))$(CC) $(CFLAGS) -c $< -o $@
|
||||
|
||||
# generated definitions for use in .S files
|
||||
$(BUILDDIR)/%_asmdefs.h: $(ROOTDIR)/%_asmdefs.c
|
||||
|
|
@ -451,7 +450,7 @@ $(BUILDDIR)/%_asmdefs.h: $(ROOTDIR)/%_asmdefs.c
|
|||
|
||||
%.o: %.S
|
||||
$(SILENT)mkdir -p $(dir $@)
|
||||
$(call PRINTS,CC $(subst $(ROOTDIR)/,,$<))$(CC) $(CFLAGS) $(ASMFLAGS) -c $< -o $@
|
||||
$(call PRINTS,CC $(subst $(ROOTDIR)/,,$<))$(CC) $(CFLAGS) -c $< -o $@
|
||||
|
||||
Makefile: $(TOOLSDIR)/configure
|
||||
ifneq (reconf,$(MAKECMDGOALS))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue