aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.6/gcc/configure.ac
diff options
context:
space:
mode:
Diffstat (limited to 'gcc-4.6/gcc/configure.ac')
-rw-r--r--gcc-4.6/gcc/configure.ac44
1 files changed, 9 insertions, 35 deletions
diff --git a/gcc-4.6/gcc/configure.ac b/gcc-4.6/gcc/configure.ac
index 71c9bbb..5062115 100644
--- a/gcc-4.6/gcc/configure.ac
+++ b/gcc-4.6/gcc/configure.ac
@@ -844,17 +844,7 @@ esac
gcc_AC_PROG_LN_S
ACX_PROG_LN($LN_S)
AC_PROG_RANLIB
-case "${host}" in
-*-*-darwin*)
- # By default, the Darwin ranlib will not treat common symbols as
- # definitions when building the archive table of contents. Other
- # ranlibs do that; pass an option to the Darwin ranlib that makes
- # it behave similarly.
- ranlib_flags="-c"
- ;;
-*)
- ranlib_flags=""
-esac
+ranlib_flags=""
AC_SUBST(ranlib_flags)
gcc_AC_PROG_INSTALL
@@ -3182,6 +3172,14 @@ elif test x$gcc_cv_ld != x; then
gcc_cv_ld_static_option="-noso"
gcc_cv_ld_dynamic_option="-so_archive"
;;
+ # HP-UX ld uses -a flags to select between shared and archive.
+ *-*-hpux*)
+ if test x"$gnu_ld" = xno; then
+ gcc_cv_ld_static_dynamic=yes
+ gcc_cv_ld_static_option="-aarchive_shared"
+ gcc_cv_ld_dynamic_option="-adefault"
+ fi
+ ;;
# IRIX 6 ld supports -Bstatic/-Bdynamic.
mips-sgi-irix6*)
gcc_cv_ld_static_dynamic=yes
@@ -4979,30 +4977,6 @@ AC_DEFINE_UNQUOTED(WARN_FRAME_LARGER_THAN_EXTRA_TEXT,
[Define to be extra text for frame size warnings.])
-# Specify what hash style to use by default.
-AC_ARG_WITH([linker-hash-style],
-[AC_HELP_STRING([--with-linker-hash-style={sysv,gnu,both}],
- [specify the linker hash style])],
-[case x"$withval" in
- xsysv)
- LINKER_HASH_STYLE=sysv
- ;;
- xgnu)
- LINKER_HASH_STYLE=gnu
- ;;
- xboth)
- LINKER_HASH_STYLE=both
- ;;
- *)
- AC_MSG_ERROR([$withval is an invalid option to --with-linker-hash-style])
- ;;
- esac],
-[LINKER_HASH_STYLE=''])
-if test x"${LINKER_HASH_STYLE}" != x; then
- AC_DEFINE_UNQUOTED(LINKER_HASH_STYLE, "$LINKER_HASH_STYLE",
- [The linker hash style])
-fi
-
# Configure the subdirectories
# AC_CONFIG_SUBDIRS($subdirs)