Bläddra i källkod

gcc git doesn't use text-section-literals

Waldemar Brodkorb 8 år sedan
förälder
incheckning
26d0bebd88
1 ändrade filer med 4 tillägg och 0 borttagningar
  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)