+2008-11-06 David Edelsohn <edelsohn@gnu.org>
+
+ PR target/26397
+ * config/rs6000/aix.h (LIBSTDCXX_STATIC): Define.
+
2008-11-06 Kazu Hirata <kazu@codesourcery.com>
PR target/35574
#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) \
+2008-11-06 David Edelsohn <edelsohn@gnu.org>
+
+ PR target/26397
+ * g++spec.c (LIBSTDCXX_STATIC): New.
+ (lang_spec_driver): Use LIBSTDCXX_STATIC when not
+ shared_libgcc.
+
2008-11-05 Fabien Chene <fabien.chene@gmail.com>
PR c++/35219
#ifndef LIBSTDCXX_PROFILE
#define LIBSTDCXX_PROFILE LIBSTDCXX
#endif
+#ifndef LIBSTDCXX_STATIC
+#define LIBSTDCXX_STATIC LIBSTDCXX
+#endif
void
lang_specific_driver (int *in_argc, const char *const **in_argv,
/* Add `-lstdc++' if we haven't already done so. */
if (library > 0)
{
- arglist[j] = saw_profile_flag ? LIBSTDCXX_PROFILE : LIBSTDCXX;
+ arglist[j] = shared_libgcc == 0 ? LIBSTDCXX_STATIC
+ : saw_profile_flag ? LIBSTDCXX_PROFILE : LIBSTDCXX;
if (arglist[j][0] != '-' || arglist[j][1] == 'l')
added_libraries++;
j++;