summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2021-07-08 20:46:11 -0400
committerSolomon Peachy <pizza@shaftnet.org>2021-07-08 20:47:30 -0400
commit2e9b93dc5df5aff35a64c55493bc2d2d74b4aa0d (patch)
tree612e9d9a70ed50088ee643b7ea3bc6e0edae1ae2 /tools
parent2c984f3714067a38980dae51d1cb7d66d49f84f8 (diff)
downloadrockbox-2e9b93dc5df5aff35a64c55493bc2d2d74b4aa0d.tar.gz
rockbox-2e9b93dc5df5aff35a64c55493bc2d2d74b4aa0d.zip
build: Nuke the ASMFLAGS workaround for gcc 3.4.x
Change-Id: I0f21e9539d39afd54916fa8d84ce798eef474a2c
Diffstat (limited to 'tools')
-rw-r--r--tools/make.inc2
-rw-r--r--tools/root.make5
2 files changed, 3 insertions, 4 deletions
diff --git a/tools/make.inc b/tools/make.inc
index d03898b2e1..5521612f62 100644
--- a/tools/make.inc
+++ b/tools/make.inc
@@ -11,7 +11,7 @@ $(OBJDIR)/%.o: %.c
11 11
12$(OBJDIR)/%.o: %.S 12$(OBJDIR)/%.o: %.S
13 $(SILENT)mkdir -p $(dir $@) 13 $(SILENT)mkdir -p $(dir $@)
14 $(call PRINTS,CC $<)$(CC) $(CFLAGS) $(ASMFLAGS) -c $< -o $@ 14 $(call PRINTS,CC $<)$(CC) $(CFLAGS) -c $< -o $@
15 15
16# The echo stuff last in the dep update shell magic is to prevent any compiler 16# The echo stuff last in the dep update shell magic is to prevent any compiler
17# errors/warnings to cause an error code to get returned and thus stop the 17# errors/warnings to cause an error code to get returned and thus stop the
diff --git a/tools/root.make b/tools/root.make
index f1bd14b827..2a83a32292 100644
--- a/tools/root.make
+++ b/tools/root.make
@@ -16,7 +16,6 @@ INCLUDES = -I$(BUILDDIR) -I$(BUILDDIR)/lang $(TARGET_INC)
16 16
17CFLAGS = $(INCLUDES) $(DEFINES) $(GCCOPTS) 17CFLAGS = $(INCLUDES) $(DEFINES) $(GCCOPTS)
18PPCFLAGS = $(filter-out -g -Dmain=SDL_main,$(CFLAGS)) # cygwin sdl-config fix 18PPCFLAGS = $(filter-out -g -Dmain=SDL_main,$(CFLAGS)) # cygwin sdl-config fix
19ASMFLAGS = -D__ASSEMBLER__ # work around gcc 3.4.x bug with -std=gnu99, only meant for .S files
20CORE_LDOPTS = $(GLOBAL_LDOPTS) # linker ops specifically for core build 19CORE_LDOPTS = $(GLOBAL_LDOPTS) # linker ops specifically for core build
21 20
22TOOLS = $(TOOLSDIR)/rdf2binary $(TOOLSDIR)/convbdf \ 21TOOLS = $(TOOLSDIR)/rdf2binary $(TOOLSDIR)/convbdf \
@@ -436,7 +435,7 @@ $(BUILDDIR)/%.o: $(ROOTDIR)/%.c
436 435
437$(BUILDDIR)/%.o: $(ROOTDIR)/%.S 436$(BUILDDIR)/%.o: $(ROOTDIR)/%.S
438 $(SILENT)mkdir -p $(dir $@) 437 $(SILENT)mkdir -p $(dir $@)
439 $(call PRINTS,CC $(subst $(ROOTDIR)/,,$<))$(CC) $(CFLAGS) $(ASMFLAGS) -c $< -o $@ 438 $(call PRINTS,CC $(subst $(ROOTDIR)/,,$<))$(CC) $(CFLAGS) -c $< -o $@
440 439
441# generated definitions for use in .S files 440# generated definitions for use in .S files
442$(BUILDDIR)/%_asmdefs.h: $(ROOTDIR)/%_asmdefs.c 441$(BUILDDIR)/%_asmdefs.h: $(ROOTDIR)/%_asmdefs.c
@@ -451,7 +450,7 @@ $(BUILDDIR)/%_asmdefs.h: $(ROOTDIR)/%_asmdefs.c
451 450
452%.o: %.S 451%.o: %.S
453 $(SILENT)mkdir -p $(dir $@) 452 $(SILENT)mkdir -p $(dir $@)
454 $(call PRINTS,CC $(subst $(ROOTDIR)/,,$<))$(CC) $(CFLAGS) $(ASMFLAGS) -c $< -o $@ 453 $(call PRINTS,CC $(subst $(ROOTDIR)/,,$<))$(CC) $(CFLAGS) -c $< -o $@
455 454
456Makefile: $(TOOLSDIR)/configure 455Makefile: $(TOOLSDIR)/configure
457ifneq (reconf,$(MAKECMDGOALS)) 456ifneq (reconf,$(MAKECMDGOALS))