diff options
Diffstat (limited to 'gcc-4.4.0/gcc/configure')
-rwxr-xr-x | gcc-4.4.0/gcc/configure | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/gcc-4.4.0/gcc/configure b/gcc-4.4.0/gcc/configure index 299ff6915..170d4011f 100755 --- a/gcc-4.4.0/gcc/configure +++ b/gcc-4.4.0/gcc/configure @@ -20892,6 +20892,19 @@ fi fi +# Check to see if we are using gold instead of ld +echo "$as_me:$LINENO: checking whether we are using gold" >&5 +echo $ECHO_N "checking whether we are using gold... $ECHO_C" >&6 +ld_is_gold=no +if test x$gcc_cv_ld != x; then + ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q` + if echo "$ld_ver" | grep "GNU gold" > /dev/null; then + ld_is_gold=yes + fi +fi +echo "$as_me:$LINENO: result: $ld_is_gold" >&5 +echo "${ECHO_T}$ld_is_gold" >&6 + ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld case "$ORIGINAL_LD_FOR_TARGET" in @@ -21480,7 +21493,9 @@ else else gcc_cv_ld_hidden=yes ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q` - if echo "$ld_ver" | grep GNU > /dev/null; then + if test x"$ld_is_gold" == xyes; then + gcc_cv_ld_hidden=yes + elif echo "$ld_ver" | grep GNU > /dev/null; then ld_vers=`echo $ld_ver | sed -n \ -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'` ld_date=`echo $ld_ver | sed -n 's,^.*\([2-9][0-9][0-9][0-9]\)[-]*\([01][0-9]\)[-]*\([0-3][0-9]\).*$,\1\2\3,p'` @@ -22016,7 +22031,9 @@ echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group_percent" >&5 echo "${ECHO_T}$gcc_cv_as_comdat_group_percent" >&6 fi -if test $in_tree_ld != yes && test x"$ld_vers" != x; then +if test x"$ld_is_gold" == xyes; then + comdat_group=yes +elif test $in_tree_ld != yes && test x"$ld_vers" != x; then comdat_group=yes if test 0"$ld_date" -lt 20050308; then if test -n "$ld_date"; then |