summaryrefslogtreecommitdiffstats
path: root/toolchain/gcc/Makefile.in
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2007-07-08 16:27:25 +0000
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2007-07-08 16:27:25 +0000
commit9fbb109506cdbe3303f8fccd0c43dc46e2d9edc3 (patch)
tree5d5a9f97176b4337506d1785a4edf82abab74c19 /toolchain/gcc/Makefile.in
parentc779748845600f4c4a397f5392d9a95d654d5fd4 (diff)
downloadbuildroot-novena-9fbb109506cdbe3303f8fccd0c43dc46e2d9edc3.tar.gz
buildroot-novena-9fbb109506cdbe3303f8fccd0c43dc46e2d9edc3.zip
- unify the GCC_WITH_ configure options and make them active
Diffstat (limited to 'toolchain/gcc/Makefile.in')
-rw-r--r--toolchain/gcc/Makefile.in13
1 files changed, 13 insertions, 0 deletions
diff --git a/toolchain/gcc/Makefile.in b/toolchain/gcc/Makefile.in
index 6390da667..8484ebac7 100644
--- a/toolchain/gcc/Makefile.in
+++ b/toolchain/gcc/Makefile.in
@@ -47,6 +47,19 @@ else # no softfloat support
SOFT_FLOAT_CONFIG_OPTION:=
TARGET_SOFT_FLOAT:=
ARCH_FPU_SUFFIX:=
+# some additional defaults
+ifneq ($(strip $(subst ",,$(BR2_GCC_TARGET_ARCH))),)
+# ")))
+GCC_WITH_ARCH:=--with-arch=$(BR2_GCC_TARGET_ARCH)
+endif
+ifneq ($(strip $(subst ",,$(BR2_GCC_TARGET_TUNE))),)
+# ")))
+GCC_WITH_TUNE:=--with-tune=$(BR2_GCC_TARGET_TUNE)
+endif
+ifneq ($(strip $(subst ",,$(BR2_GCC_TARGET_ABI))),)
+# ")))
+GCC_WITH_ABI:=--with-tune=$(BR2_GCC_TARGET_ABI)
+endif
endif
TARGET_GCC_FLAGS= CFLAGS_FOR_TARGET="$(TARGET_CFLAGS) $(TARGET_SOFT_FLOAT)" \