aboutsummaryrefslogtreecommitdiff
path: root/libstdc++-v3/configure
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2009-01-07 23:49:29 +0100
committerJakub Jelinek <jakub@gcc.gnu.org>2009-01-07 23:49:29 +0100
commit1f93f6871ed8248e799690c7029cf1d5b12ff2f2 (patch)
treec51588bf25bcc97ad673fc18f899ae85d03c2a0f /libstdc++-v3/configure
parent876080ffb70bdcb889f47aa334547cf25398e943 (diff)
downloadgcc-1f93f6871ed8248e799690c7029cf1d5b12ff2f2.zip
gcc-1f93f6871ed8248e799690c7029cf1d5b12ff2f2.tar.gz
gcc-1f93f6871ed8248e799690c7029cf1d5b12ff2f2.tar.bz2
re PR libstdc++/38092 (libstdc++ doesn't build with GNU ld 2.19 and Sun as: no .symver support)
PR libstdc++/38092 * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New test. * src/compatibility.cc: Don't use .symver directives if _GLIBCXX_HAVE_AS_SYMVER_DIRECTIVE is not defined. * config.h.in: Regenerated. * configure: Likewise. From-SVN: r143169
Diffstat (limited to 'libstdc++-v3/configure')
-rwxr-xr-xlibstdc++-v3/configure62
1 files changed, 62 insertions, 0 deletions
diff --git a/libstdc++-v3/configure b/libstdc++-v3/configure
index d5e6752..759b241 100755
--- a/libstdc++-v3/configure
+++ b/libstdc++-v3/configure
@@ -107738,6 +107738,68 @@ _ACEOF
fi
+echo "$as_me:$LINENO: checking whether the target supports .symver directive" >&5
+echo $ECHO_N "checking whether the target supports .symver directive... $ECHO_C" >&6
+if test "${glibcxx_cv_have_as_symver_directive+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+void foo (void); __asm (".symver foo, bar@SYMVER");
+int
+main ()
+{
+
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag"
+ || test ! -s conftest.err'
+ { (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); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (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
+ glibcxx_cv_have_as_symver_directive=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+glibcxx_cv_have_as_symver_directive=no
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+fi
+echo "$as_me:$LINENO: result: $glibcxx_cv_have_as_symver_directive" >&5
+echo "${ECHO_T}$glibcxx_cv_have_as_symver_directive" >&6
+if test $glibcxx_cv_have_as_symver_directive = yes; then
+
+cat >>confdefs.h <<\_ACEOF
+#define HAVE_AS_SYMVER_DIRECTIVE 1
+_ACEOF
+
+fi
+