From 483a0cf804dfc2b320fc32c7de77d23502dadfd5 Mon Sep 17 00:00:00 2001 From: Marian Balakowicz Date: Tue, 9 May 2006 11:28:36 +0200 Subject: Fixes for gcc 3.4 based m68k toolchain, based on patch by Jate Sujjavanich. --- config.mk | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'config.mk') diff --git a/config.mk b/config.mk index dfbb1b7c6f..b1e1d8f149 100644 --- a/config.mk +++ b/config.mk @@ -143,7 +143,14 @@ CFLAGS := $(CPPFLAGS) -Wall -Wno-trigraphs endif endif +# turn jbsr into jsr for m68k +ifeq ($(ARCH),m68k) +ifeq ($(findstring 3.4,$(shell $(CC) --version)),3.4) +AFLAGS_DEBUG := -Wa,-gstabs,-S +endif +else AFLAGS_DEBUG := -Wa,-gstabs +endif AFLAGS := $(AFLAGS_DEBUG) -D__ASSEMBLY__ $(CPPFLAGS) LDFLAGS += -Bstatic -T $(LDSCRIPT) -Ttext $(TEXT_BASE) $(PLATFORM_LDFLAGS) -- cgit v1.2.1