summaryrefslogtreecommitdiff
path: root/gnu/usr.bin
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2009-08-01 15:54:31 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2009-08-01 15:54:31 +0000
commit51affaf05614d2885578f883b23f667ba2114119 (patch)
treed1599a81113de6d148814228da4bc5ed718ffe52 /gnu/usr.bin
parent0b6d0773e1b90dae86a903045ca2e37cc5463e93 (diff)
Revert previous change which enabled symbol visibility support; appears to
break some applications in ports in at least amd64 and sparc64. Tracked down by martynas@ and mgrimm@
Diffstat (limited to 'gnu/usr.bin')
-rwxr-xr-xgnu/usr.bin/gcc/gcc/configure2
-rw-r--r--gnu/usr.bin/gcc/gcc/configure.in88
2 files changed, 8 insertions, 82 deletions
diff --git a/gnu/usr.bin/gcc/gcc/configure b/gnu/usr.bin/gcc/gcc/configure
index 89ce6cae24d..1eff0613db0 100755
--- a/gnu/usr.bin/gcc/gcc/configure
+++ b/gnu/usr.bin/gcc/gcc/configure
@@ -7274,7 +7274,6 @@ 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.
@@ -7308,7 +7307,6 @@ 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 10748de04f0..0f64d07bf85 100644
--- a/gnu/usr.bin/gcc/gcc/configure.in
+++ b/gnu/usr.bin/gcc/gcc/configure.in
@@ -177,42 +177,6 @@ changequote([, ])dnl
fi
fi
-AC_ARG_WITH(sysroot,
-[ --with-sysroot[=DIR] Search for usr/lib, usr/include, et al, within DIR.],
-[
- case ${with_sysroot} in
- yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
- *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
- esac
-
- TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
- CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)'
-
- if test "x$exec_prefix" = xNONE; then
- if test "x$prefix" = xNONE; then
- test_prefix=/usr/local
- else
- test_prefix=$prefix
- fi
- else
- test_prefix=$exec_prefix
- fi
- case ${TARGET_SYSTEM_ROOT} in
- "${test_prefix}"|"${test_prefix}/"*|\
- '${exec_prefix}'|'${exec_prefix}/'*)
- t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
- TARGET_SYSTEM_ROOT_DEFINE="$t"
- ;;
- esac
-], [
- TARGET_SYSTEM_ROOT=
- TARGET_SYSTEM_ROOT_DEFINE=
- CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
-])
-AC_SUBST(TARGET_SYSTEM_ROOT)
-AC_SUBST(TARGET_SYSTEM_ROOT_DEFINE)
-AC_SUBST(CROSS_SYSTEM_HEADER_DIR)
-
# Determine the host, build, and target systems
AC_CANONICAL_SYSTEM
@@ -817,19 +781,6 @@ if test $gcc_cv_type_clock_t = yes; then
[Define if <time.h> defines clock_t.])
fi
-AC_CACHE_CHECK(for uchar, gcc_cv_type_uchar,
-[AC_TRY_COMPILE([
-#include "ansidecl.h"
-#include "system.h"
-],
-[if ((uchar *)0) return 0;
- if (sizeof(uchar)) return 0;],
-ac_cv_type_uchar=yes, ac_cv_type_uchar=no)])
-if test $ac_cv_type_uchar = yes; then
- AC_DEFINE(HAVE_UCHAR, 1,
- [Define if <sys/types.h> provides uchar.])
-fi
-
AC_ARG_ENABLE(initfini-array,
[ --enable-initfini-array use .init_array/.fini_array sections],
gcc_cv_initfinit_array=$enableval, [gcc_AC_INITFINI_ARRAY])
@@ -1263,9 +1214,6 @@ then
| powerpc*-*-*,powerpc64*-*-*)
CROSS="$CROSS -DNATIVE_CROSS" ;;
esac
-elif test "x$TARGET_SYSTEM_ROOT" != x; then
- # This is just $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)
- SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
fi
# If this is a cross-compiler that does not
@@ -1276,9 +1224,12 @@ fi
# This prevents libgcc2 from containing any code which requires libc
# support.
inhibit_libc=
-if { test x$host != x$target && test "x$with_headers" = x &&
- test "x$with_sysroot" = x ; } || test x$with_newlib = xyes ; then
+if [test x$host != x$target] && [test x$with_headers = x]; then
inhibit_libc=-Dinhibit_libc
+else
+ if [test x$with_newlib = xyes]; then
+ inhibit_libc=-Dinhibit_libc
+ fi
fi
AC_SUBST(inhibit_libc)
@@ -1305,10 +1256,8 @@ then
HOST_CC='$(CC_FOR_BUILD)'
HOST_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD) $(XCFLAGS)'
- if test "x$TARGET_SYSTEM_ROOT" = x; then
- STMP_FIXINC=
- STMP_FIXPROTO=
- fi
+ STMP_FIXINC=
+ STMP_FIXPROTO=
fi
# Expand extra_headers to include complete path.
@@ -1680,7 +1629,6 @@ 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.
@@ -1716,7 +1664,6 @@ 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,
@@ -2440,24 +2387,6 @@ if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
fi
AC_MSG_RESULT($gcc_cv_ld_eh_frame_hdr)
-AC_MSG_CHECKING(linker --as-needed support)
-gcc_cv_ld_as_needed=no
-if test x$gcc_cv_gld_major_version != x -a x$gcc_cv_gld_minor_version != x; then
- if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 16 -o "$gcc_cv_gld_major_version" -gt 2 && grep 'EMUL = elf' ../ld/Makefile > /dev/null; then
- gcc_cv_ld_as_needed=yes
- fi
-elif test x$gcc_cv_ld != x; then
- # Check if linker supports --as-needed and --no-as-needed options
- if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
- gcc_cv_ld_as_needed=yes
- fi
-fi
-if test x"$gcc_cv_ld_as_needed" = xyes; then
- AC_DEFINE(HAVE_LD_AS_NEEDED, 1,
-[Define if your linker supports --as-needed and --no-as-needed options.])
-fi
-AC_MSG_RESULT($gcc_cv_ld_as_needed)
-
# Miscellaneous target-specific checks.
case "$target" in
mips*-*-*)
@@ -2488,8 +2417,7 @@ case "$target" in
;;
esac
-if test x$with_sysroot = x && test x$host = x$target \
- && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" ; then
+if test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" ; then
AC_DEFINE_UNQUOTED(PREFIX_INCLUDE_DIR, "$prefix/include")
fi