|
@@ -170,6 +170,11 @@ ifeq ($(CONFIG_arm),y)
|
|
|
--with-fpu=$(word 2, $(subst +, ",$(CONFIG_CPU_TYPE))) \
|
|
--with-fpu=$(word 2, $(subst +, ",$(CONFIG_CPU_TYPE))) \
|
|
|
--with-float=hard
|
|
--with-float=hard
|
|
|
endif
|
|
endif
|
|
|
|
|
+
|
|
|
|
|
+ # Do not let TARGET_CFLAGS get poisoned by extra CPU optimization flags
|
|
|
|
|
+ # that do not belong here. The cpu,fpu type should be specified via
|
|
|
|
|
+ # --with-cpu and --with-fpu for ARM and not CFLAGS.
|
|
|
|
|
+ TARGET_CFLAGS:=$(filter-out -m%,$(call qstrip,$(TARGET_CFLAGS)))
|
|
|
endif
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(CONFIG_TARGET_x86)$(CONFIG_USE_GLIBC)$(CONFIG_INSTALL_GCCGO),yyy)
|
|
ifeq ($(CONFIG_TARGET_x86)$(CONFIG_USE_GLIBC)$(CONFIG_INSTALL_GCCGO),yyy)
|