summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormiod <miod@openbsd.org>2009-07-22 20:22:38 +0000
committermiod <miod@openbsd.org>2009-07-22 20:22:38 +0000
commitdea2cdf2b632346a0dead3e53e0154314516472f (patch)
tree8a33749a32eb9ce345fd617ccb7518c363088db9
parentMake sure the irq numbers for the O2 event counters match the interrupt lines (diff)
downloadwireguard-openbsd-dea2cdf2b632346a0dead3e53e0154314516472f.tar.xz
wireguard-openbsd-dea2cdf2b632346a0dead3e53e0154314516472f.zip
Fix the configure test for symbol visibility support; the current test
tries to check for an old, known to be flawed, ld version, but the in-tree ld causes a false positive.
-rwxr-xr-xgnu/usr.bin/gcc/gcc/configure2
-rw-r--r--gnu/usr.bin/gcc/gcc/configure.in2
2 files changed, 4 insertions, 0 deletions
diff --git a/gnu/usr.bin/gcc/gcc/configure b/gnu/usr.bin/gcc/gcc/configure
index 1eff0613db0..89ce6cae24d 100755
--- a/gnu/usr.bin/gcc/gcc/configure
+++ b/gnu/usr.bin/gcc/gcc/configure
@@ -7274,6 +7274,7 @@ elif test x$gcc_cv_as != x; then
fi
rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
+ if false; then
# GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
# This is irritatingly difficult to feature test for. Look for
# the date string after the version number.
@@ -7307,6 +7308,7 @@ elif test x$gcc_cv_as != x; then
# non-GNU linkers don't seem to support .hidden yet
gcc_cv_as_hidden=no
fi
+ fi
fi
if test x"$gcc_cv_as_hidden" = xyes; then
cat >> confdefs.h <<\EOF
diff --git a/gnu/usr.bin/gcc/gcc/configure.in b/gnu/usr.bin/gcc/gcc/configure.in
index d3f0484020b..10748de04f0 100644
--- a/gnu/usr.bin/gcc/gcc/configure.in
+++ b/gnu/usr.bin/gcc/gcc/configure.in
@@ -1680,6 +1680,7 @@ elif test x$gcc_cv_as != x; then
fi
rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
+ if false; then
# GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
# This is irritatingly difficult to feature test for. Look for
# the date string after the version number.
@@ -1715,6 +1716,7 @@ changequote([,])dnl
# non-GNU linkers don't seem to support .hidden yet
gcc_cv_as_hidden=no
fi
+ fi
fi
if test x"$gcc_cv_as_hidden" = xyes; then
AC_DEFINE(HAVE_GAS_HIDDEN, 1,