Browse Source

gcc git doesn't use text-section-literals

Waldemar Brodkorb 8 years ago
parent
commit
26d0bebd88
1 changed files with 4 additions and 0 deletions
  1. 4 0
      mk/vars.mk

+ 4 - 0
mk/vars.mk

@@ -255,10 +255,14 @@ ifeq ($(ADK_TARGET_ARCH_MICROBLAZE),y)
 TARGET_CFLAGS+=		-mxl-barrel-shift
 TARGET_CXXFLAGS+=	-mxl-barrel-shift
 endif
+
 ifeq ($(ADK_TARGET_ARCH_XTENSA),y)
+# newer gcc does not need this anymore
+ifeq ($(ADK_TOOLCHAIN_GCC_GIT),)
 TARGET_CFLAGS+=		-mlongcalls -mtext-section-literals
 TARGET_CXXFLAGS+=	-mlongcalls -mtext-section-literals
 endif
+endif
 
 # add configured compiler flags for optimization
 TARGET_CFLAGS+=		$(ADK_TARGET_CFLAGS_OPT)