aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/rs6000
diff options
context:
space:
mode:
authorDavid Edelsohn <edelsohn@gnu.org>2008-11-06 15:32:40 +0000
committerDavid Edelsohn <dje@gcc.gnu.org>2008-11-06 10:32:40 -0500
commitce75e1dd3cb7ed3c45517c1f1409a087240bfd0b (patch)
tree54d1c55a9915de05d92840d3755e415d3f3bdf61 /gcc/config/rs6000
parent66e62b4943dc28224c96f4986ed11a007180d7ea (diff)
downloadgcc-ce75e1dd3cb7ed3c45517c1f1409a087240bfd0b.zip
gcc-ce75e1dd3cb7ed3c45517c1f1409a087240bfd0b.tar.gz
gcc-ce75e1dd3cb7ed3c45517c1f1409a087240bfd0b.tar.bz2
re PR target/26397 (Program crashes when rethrowing exception)
PR target/26397 * config/rs6000/aix.h (LIBSTDCXX_STATIC): Define. cp/ * g++spec.c (LIBSTDCXX_STATIC): New. (lang_spec_driver): Use LIBSTDCXX_STATIC when not shared_libgcc. From-SVN: r141646
Diffstat (limited to 'gcc/config/rs6000')
-rw-r--r--gcc/config/rs6000/aix.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/config/rs6000/aix.h b/gcc/config/rs6000/aix.h
index 4807298..4dc2e50 100644
--- a/gcc/config/rs6000/aix.h
+++ b/gcc/config/rs6000/aix.h
@@ -155,6 +155,9 @@
#define LIB_SPEC "%{pg:-L/lib/profiled -L/usr/lib/profiled}\
%{p:-L/lib/profiled -L/usr/lib/profiled} %{!shared:%{g*:-lg}} -lc"
+/* Static linking with shared libstdc++ requires libsupc++ as well. */
+#define LIBSTDCXX_STATIC "-lstdc++ -lsupc++"
+
/* This now supports a natural alignment mode. */
/* AIX word-aligns FP doubles but doubleword-aligns 64-bit ints. */
#define ADJUST_FIELD_ALIGN(FIELD, COMPUTED) \