diff options
author | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2011-06-27 18:04:50 +0200 |
---|---|---|
committer | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2011-06-27 18:04:50 +0200 |
commit | d2d948a4ad3ba384c686be53e9afa8b5a2a0804f (patch) | |
tree | 88290d4e4e5127975aecef28e11bd7900c2beb7d /scripts/build/cc | |
parent | 71d5c495e9885ce175378cc3138f58361532e533 (diff) | |
download | crosstool-ng-d2d948a4ad3ba384c686be53e9afa8b5a2a0804f.tar.gz crosstool-ng-d2d948a4ad3ba384c686be53e9afa8b5a2a0804f.tar.bz2 crosstool-ng-d2d948a4ad3ba384c686be53e9afa8b5a2a0804f.zip |
cc/gcc: add MIPS spercific configure options
Add the following MIPS specific options when configuring gcc:
--with(out)-llsc
--with(out)-synci
--with(out)-mips-plt
--with-divide=type
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Diffstat (limited to 'scripts/build/cc')
-rw-r--r-- | scripts/build/cc/gcc.sh | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/scripts/build/cc/gcc.sh b/scripts/build/cc/gcc.sh index 8cc62ac2..ffd1c671 100644 --- a/scripts/build/cc/gcc.sh +++ b/scripts/build/cc/gcc.sh @@ -267,6 +267,22 @@ do_cc_core() { *) extra_config+=( "--with-linker-hash-style=${CT_CC_GCC_LNK_HASH_STYLE}" );; esac + case "${CT_CC_GCC_mips_llsc}" in + y) extra_config+=( --with-llsc );; + m) ;; + *) extra_config+=( --without-llsc );; + esac + + case "${CT_CC_GCC_mips_synci}" in + y) extra_config+=( --with-synci );; + m) ;; + *) extra_config+=( --without-synci );; + esac + + if [ "${CT_CC_GCC_mips_plt}" ]; then + extra_config+=( --with-mips-plt ) + fi + CT_DoLog DEBUG "Extra config passed: '${extra_config[*]}'" # Use --with-local-prefix so older gccs don't look in /usr/local (http://gcc.gnu.org/PR10532) @@ -544,6 +560,22 @@ do_cc() { *) extra_config+=( "--with-linker-hash-style=${CT_CC_GCC_LNK_HASH_STYLE}" );; esac + case "${CT_CC_GCC_mips_llsc}" in + y) extra_config+=( --with-llsc );; + m) ;; + *) extra_config+=( --without-llsc );; + esac + + case "${CT_CC_GCC_mips_synci}" in + y) extra_config+=( --with-synci );; + m) ;; + *) extra_config+=( --without-synci );; + esac + + if [ "${CT_CC_GCC_mips_plt}" ]; then + extra_config+=( --with-mips-plt ) + fi + if [ "${CT_CC_GCC_ENABLE_PLUGINS}" = "y" ]; then extra_config+=( --enable-plugin ) fi |