diff options
author | Khem Raj <raj.khem@gmail.com> | 2009-12-19 14:18:49 -0800 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2009-12-20 22:54:45 -0800 |
commit | 2b06bd7a61a7c284183b5fb10af80e9df4b27b61 (patch) | |
tree | e47e50bee33ee64ad05262c3580ac3f2e1d31aeb /recipes/gcc/gcc-common.inc | |
parent | 237917b03120fbd49a5bcb9967dce8ae815cdf5d (diff) |
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-common.inc')
-rw-r--r-- | recipes/gcc/gcc-common.inc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/recipes/gcc/gcc-common.inc b/recipes/gcc/gcc-common.inc index 6e777e6be2..97b140cb0f 100644 --- a/recipes/gcc/gcc-common.inc +++ b/recipes/gcc/gcc-common.inc @@ -15,6 +15,11 @@ def get_gcc_fpu_setting(bb, d): return "--with-float=soft" return "" +def get_gcc_mips_plt_setting(bb, d): + if bb.data.getVar('TARGET_ARCH', d, 1) in [ 'mips', 'mipsel' ] and 'mplt' in bb.data.getVar('DISTRO_FEATURES',d,1).split() : + return "--with-mips-plt" + return "" + # We really need HOST_SYS here for some packages and TARGET_SYS for others. # For now, libgcc is most important so we fix for that - RP. SHLIBSDIR = "${STAGING_DIR_TARGET}/shlibs" |