summaryrefslogtreecommitdiff
path: root/packages/gcc/gcc-configure-common.inc
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@rpsys.net>2008-03-27 11:37:04 +0000
committerRichard Purdie <rpurdie@rpsys.net>2008-03-27 11:37:04 +0000
commit06904ed971e17216c41f58906d3a07d636e857c1 (patch)
tree09c489a408d329d35c6c6ea56089587f9238bf53 /packages/gcc/gcc-configure-common.inc
parent5dd039671ba6eb9b33d474765f95fcf6dc0aba92 (diff)
gcc-4.x: Cleanup and standardise the compiler configuration flags, fixing various bugs in the 4.1.x and 4.0.x versions. Broken libssp and libmudflap libraries should no longer be staged into cross.
Diffstat (limited to 'packages/gcc/gcc-configure-common.inc')
-rw-r--r--packages/gcc/gcc-configure-common.inc7
1 files changed, 6 insertions, 1 deletions
diff --git a/packages/gcc/gcc-configure-common.inc b/packages/gcc/gcc-configure-common.inc
index 9971c08c20..9085367b05 100644
--- a/packages/gcc/gcc-configure-common.inc
+++ b/packages/gcc/gcc-configure-common.inc
@@ -13,6 +13,9 @@ JAVA_sh3 ?= ""
FORTRAN ?= ",f77"
LANGUAGES ?= "c,c++${FORTRAN}${JAVA}"
+EXTRA_OECONF_BASE ?= ""
+EXTRA_OECONF_PATHS ?= ""
+
EXTRA_OECONF = "${@['--enable-clocale=generic', ''][bb.data.getVar('USE_NLS', d, 1) != 'no']} \
--with-gnu-ld \
--enable-shared \
@@ -25,6 +28,8 @@ EXTRA_OECONF = "${@['--enable-clocale=generic', ''][bb.data.getVar('USE_NLS', d,
--enable-symvers=gnu \
--enable-libstdcxx-pch \
--program-prefix=${TARGET_PREFIX} \
+ ${EXTRA_OECONF_BASE} \
+ ${EXTRA_OECONF_FPU} \
${EXTRA_OECONF_PATHS}"
# Build uclibc compilers without cxa_atexit support
@@ -32,7 +37,7 @@ EXTRA_OECONF_append_linux = " --enable-__cxa_atexit"
EXTRA_OECONF_append_linux-gnueabi = " --enable-__cxa_atexit"
EXTRA_OECONF_append_linux-uclibc = " --disable-__cxa_atexit"
EXTRA_OECONF_append_linux-uclibcgnueabi = " --disable-__cxa_atexit"
-EXTRA_OECONF += "${@get_gcc_fpu_setting(bb, d)}"
+EXTRA_OECONF_FPU = "${@get_gcc_fpu_setting(bb, d)}"
CPPFLAGS = ""
# Used by configure to define additional values for FLAGS_FOR_TARGET -