summaryrefslogtreecommitdiff
path: root/gcc/config/rs6000/aix.h
diff options
context:
space:
mode:
authordje <dje@138bc75d-0d04-0410-961f-82ee72b054a4>2008-11-06 15:32:40 +0000
committerdje <dje@138bc75d-0d04-0410-961f-82ee72b054a4>2008-11-06 15:32:40 +0000
commit76ee324fc47f09fe614053ee72691a3ddb46e7b6 (patch)
tree54d1c55a9915de05d92840d3755e415d3f3bdf61 /gcc/config/rs6000/aix.h
parent83c0aede407f647b3b2067e43ab98312943e2699 (diff)
downloadgcc-76ee324fc47f09fe614053ee72691a3ddb46e7b6.tar.gz
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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@141646 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/rs6000/aix.h')
-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 48072988f33..4dc2e5034ab 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) \