aboutsummaryrefslogtreecommitdiff
path: root/gcc
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
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')
-rw-r--r--gcc/ChangeLog8
-rwxr-xr-xgcc/configure8
-rw-r--r--gcc/configure.ac8
3 files changed, 24 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 74ffd8a..4c41afd 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,11 @@
+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.
+
2011-10-03 David S. Miller <davem@davemloft.net>
* config/sparc/sparc.md (bmask<P:mode>_vis): Split into explicit 'di'
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
diff --git a/gcc/configure.ac b/gcc/configure.ac
index 3df77c3..ed52c91 100644
--- a/gcc/configure.ac
+++ b/gcc/configure.ac
@@ -3248,6 +3248,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