aboutsummaryrefslogtreecommitdiff
path: root/libssp/configure
diff options
context:
space:
mode:
authorRainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>2010-07-02 16:17:04 +0000
committerRainer Orth <ro@gcc.gnu.org>2010-07-02 16:17:04 +0000
commitfaeb4ee3aac0ece0f8619ba8c3a2908c6ed7b9c1 (patch)
tree57acd2fb8515721e79bd9323b666b1a50a54670e /libssp/configure
parent1fa29c84624c8ab2c3739d906bc08c7b112eee73 (diff)
downloadgcc-faeb4ee3aac0ece0f8619ba8c3a2908c6ed7b9c1.zip
gcc-faeb4ee3aac0ece0f8619ba8c3a2908c6ed7b9c1.tar.gz
gcc-faeb4ee3aac0ece0f8619ba8c3a2908c6ed7b9c1.tar.bz2
configure.ac (gfortran_use_symver): Only check for Sun-style symbol versioning on Solaris 2.
libgfortran: * configure.ac (gfortran_use_symver): Only check for Sun-style symbol versioning on Solaris 2. * configure: Regenerate. libssp: * configure.ac (ssp_use_symver): Only check for Sun-style symbol versioning on Solaris 2. * configure: Regenerate. From-SVN: r161724
Diffstat (limited to 'libssp/configure')
-rwxr-xr-xlibssp/configure18
1 files changed, 11 insertions, 7 deletions
diff --git a/libssp/configure b/libssp/configure
index 7722c95..50098d4 100755
--- a/libssp/configure
+++ b/libssp/configure
@@ -4131,15 +4131,17 @@ fi
rm -f core conftest.err conftest.$ac_objext \
conftest$ac_exeext conftest.$ac_ext
if test x$ssp_use_symver = xno; then
- LDFLAGS="$save_LDFLAGS"
- LDFLAGS="$LDFLAGS -fPIC -shared -Wl,-M,./conftest.map"
- # Sun ld cannot handle wildcards and treats all entries as undefined.
- cat > conftest.map <<EOF
+ case "$target_os" in
+ solaris2*)
+ LDFLAGS="$save_LDFLAGS"
+ LDFLAGS="$LDFLAGS -fPIC -shared -Wl,-M,./conftest.map"
+ # Sun ld cannot handle wildcards and treats all entries as undefined.
+ cat > conftest.map <<EOF
FOO_1.0 {
global: foo; local: *;
};
EOF
- if test x$gcc_no_link = xyes; then
+ if test x$gcc_no_link = xyes; then
as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
fi
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
@@ -4160,6 +4162,8 @@ else
fi
rm -f core conftest.err conftest.$ac_objext \
conftest$ac_exeext conftest.$ac_ext
+ ;;
+ esac
fi
LDFLAGS="$save_LDFLAGS"
fi
@@ -10642,7 +10646,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF
-#line 10645 "configure"
+#line 10649 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
@@ -10748,7 +10752,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF
-#line 10751 "configure"
+#line 10755 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H