summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2011-06-27 13:15:00 (GMT)
committerYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2011-06-27 13:15:00 (GMT)
commit71d5c495e9885ce175378cc3138f58361532e533 (patch)
tree765743a0e86866a615e069ade7a67715e60ed8c8 /scripts
parent9c8bde853c0873da0f3e113128a4ba0e6acdc01f (diff)
cc/gcc: add option for linker hash style
Add an option to specify the hash type that gcc will ask the linker to use. It is a provision for the upcoming 4.7, as no version currently supports it. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/build/cc/gcc.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/scripts/build/cc/gcc.sh b/scripts/build/cc/gcc.sh
index a71fddd..8cc62ac 100644
--- a/scripts/build/cc/gcc.sh
+++ b/scripts/build/cc/gcc.sh
@@ -262,6 +262,11 @@ do_cc_core() {
extra_config+=( --enable-linker-build-id )
fi
+ case "${CT_CC_GCC_LNK_HASH_STYLE}" in
+ "") ;;
+ *) extra_config+=( "--with-linker-hash-style=${CT_CC_GCC_LNK_HASH_STYLE}" );;
+ esac
+
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)
@@ -534,6 +539,11 @@ do_cc() {
extra_config+=( --enable-linker-build-id )
fi
+ case "${CT_CC_GCC_LNK_HASH_STYLE}" in
+ "") ;;
+ *) extra_config+=( "--with-linker-hash-style=${CT_CC_GCC_LNK_HASH_STYLE}" );;
+ esac
+
if [ "${CT_CC_GCC_ENABLE_PLUGINS}" = "y" ]; then
extra_config+=( --enable-plugin )
fi