diff options
author | Richard Sandiford <richard@codesourcery.com> | 2006-10-29 11:13:14 +0000 |
---|---|---|
committer | Richard Sandiford <rsandifo@gcc.gnu.org> | 2006-10-29 11:13:14 +0000 |
commit | 4551169f831b3b41c5ab40d5c8c94d22e479a41c (patch) | |
tree | bf8f66085211cfd059a02f06010d2a8b21c8d8da /gcc/configure | |
parent | 5f687d19e06bbdeccc7a0b6d831ae884d177b522 (diff) | |
download | gcc-4551169f831b3b41c5ab40d5c8c94d22e479a41c.zip gcc-4551169f831b3b41c5ab40d5c8c94d22e479a41c.tar.gz gcc-4551169f831b3b41c5ab40d5c8c94d22e479a41c.tar.bz2 |
configure.ac (HAVE_AS_NO_SHARED): New AC_DEFINE.
gcc/
* configure.ac (HAVE_AS_NO_SHARED): New AC_DEFINE. Test for the
-mno-shared assembler option on mips targets.
* configure, config.in: Regenerate.
* config/mips/linux.h (NO_SHARED_SPECS): New macro.
(DRIVER_SELF_SPECS): Define to NO_SHARED_SPECS if non-empty.
* config/mips/linux64.h (DRIVER_SELF_SPECS): Include NO_SHARED_SPECS.
From-SVN: r118138
Diffstat (limited to 'gcc/configure')
-rwxr-xr-x | gcc/configure | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/gcc/configure b/gcc/configure index 54a2a17..cbf94b5 100755 --- a/gcc/configure +++ b/gcc/configure @@ -15590,6 +15590,42 @@ if test $gcc_cv_as_mips_explicit_relocs = yes; then else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS" fi fi + echo "$as_me:$LINENO: checking assembler for -mno-shared support" >&5 +echo $ECHO_N "checking assembler for -mno-shared support... $ECHO_C" >&6 +if test "${gcc_cv_as_mips_no_shared+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + gcc_cv_as_mips_no_shared=no + if test $in_tree_gas = yes; then + if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0` + then gcc_cv_as_mips_no_shared=yes +fi + elif test x$gcc_cv_as != x; then + echo 'nop' > conftest.s + if { ac_try='$gcc_cv_as -mno-shared -o conftest.o conftest.s >&5' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } + then + gcc_cv_as_mips_no_shared=yes + else + echo "configure: failed program was" >&5 + cat conftest.s >&5 + fi + rm -f conftest.o conftest.s + fi +fi +echo "$as_me:$LINENO: result: $gcc_cv_as_mips_no_shared" >&5 +echo "${ECHO_T}$gcc_cv_as_mips_no_shared" >&6 +if test $gcc_cv_as_mips_no_shared = yes; then + +cat >>confdefs.h <<\_ACEOF +#define HAVE_AS_NO_SHARED 1 +_ACEOF + +fi ;; esac |