aboutsummaryrefslogtreecommitdiff
path: root/gcc/configure
diff options
context:
space:
mode:
authorSteve Ellcey <sje@cup.hp.com>2011-10-03 17:57:40 +0000
committerSteve Ellcey <sje@gcc.gnu.org>2011-10-03 17:57:40 +0000
commitf903e000c3490f6c9366b49e393f3ac4e20106d9 (patch)
tree8d29d10bdfd000843e168442b35e0d2ec3f21d35 /gcc/configure
parent4f936a37f29b67f34b7dc8b8021025662a171426 (diff)
downloadgcc-f903e000c3490f6c9366b49e393f3ac4e20106d9.zip
gcc-f903e000c3490f6c9366b49e393f3ac4e20106d9.tar.gz
gcc-f903e000c3490f6c9366b49e393f3ac4e20106d9.tar.bz2
re PR target/49967 (The -static-libstdc++ does not work on HP-UX (IA64 B.11.23, probably others))
2011-10-03 Steve Ellcey <sje@cup.hp.com> PR target/49967 * configure.ac (gcc_cv_ld_static_dynamic): Define for *-*-hpux*. (gcc_cv_ld_static_option): Ditto. (gcc_cv_ld_dynamic_option): Ditto. * configure: Regenerate. From-SVN: r179472
Diffstat (limited to 'gcc/configure')
-rwxr-xr-xgcc/configure8
1 files changed, 8 insertions, 0 deletions
diff --git a/gcc/configure b/gcc/configure
index e067f38..ac32705 100755
--- a/gcc/configure
+++ b/gcc/configure
@@ -23568,6 +23568,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