aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/gcc/gcc-configure-common.inc
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2009-12-19 14:18:49 -0800
committerKhem Raj <raj.khem@gmail.com>2009-12-20 22:54:45 -0800
commit2b06bd7a61a7c284183b5fb10af80e9df4b27b61 (patch)
treee47e50bee33ee64ad05262c3580ac3f2e1d31aeb /recipes/gcc/gcc-configure-common.inc
parent237917b03120fbd49a5bcb9967dce8ae815cdf5d (diff)
downloadopenembedded-2b06bd7a61a7c284183b5fb10af80e9df4b27b61.tar.gz
gcc: Enable mips plt extentions if DISTRO_FEATURE has mplt.
* Newer gcc (4.4+) has implemented -mplt option to enable PLT and copy relocation extentions of MIPS ABI which makes shared code run a lot faster. This feature is however controlled by DISTRO_FEATURES which should add 'mplt' to DISTRO_FEATURES to enable it. Signed-off-by: Khem Raj <raj.khem@gmail.com> Acked-by: Holger Hans Peter Freyther <zecke@selfish.org>
Diffstat (limited to 'recipes/gcc/gcc-configure-common.inc')
-rw-r--r--recipes/gcc/gcc-configure-common.inc5
1 files changed, 4 insertions, 1 deletions
diff --git a/recipes/gcc/gcc-configure-common.inc b/recipes/gcc/gcc-configure-common.inc
index 8a96326b7d..ee6c0e782e 100644
--- a/recipes/gcc/gcc-configure-common.inc
+++ b/recipes/gcc/gcc-configure-common.inc
@@ -13,6 +13,8 @@ OBJC_linux-uclibceabi ?= ""
OBJC_linux-uclibc ?= ""
OBJC_avr ?= ""
OBJC_nylon ?= ""
+OBJC_mips ?= ""
+OBJC_mipsel ?= ""
OBJC ?= ",objc"
# gcc 3.x expects 'f77', 4.0 expects 'f95', 4.1 and 4.2 expect 'fortran'
@@ -36,7 +38,8 @@ EXTRA_OECONF = "${@['--enable-clocale=generic', ''][bb.data.getVar('USE_NLS', d,
--program-prefix=${TARGET_PREFIX} \
${EXTRA_OECONF_BASE} \
${EXTRA_OECONF_FPU} \
- ${EXTRA_OECONF_PATHS}"
+ ${EXTRA_OECONF_PATHS} \
+ ${@get_gcc_mips_plt_setting(bb, d)}"
# Build uclibc compilers without cxa_atexit support
EXTRA_OECONF_append_linux = " --enable-__cxa_atexit"