]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
linux.h (CPLUSPLUS_CPP_SPEC): New.
authorRichard Henderson <rth@redhat.com>
Sat, 9 Jun 2001 00:39:04 +0000 (17:39 -0700)
committerRichard Henderson <rth@gcc.gnu.org>
Sat, 9 Jun 2001 00:39:04 +0000 (17:39 -0700)
        * config/alpha/linux.h (CPLUSPLUS_CPP_SPEC): New.
        (LIB_SPEC): Mirror config/linux.h version.

From-SVN: r43067

gcc/ChangeLog
gcc/config/alpha/linux.h

index 2dc96830cace85187c222f1cfbea70a806c0ccaf..6b36c75ef58cba87d6712c8becc11c3d7d823f25 100644 (file)
@@ -1,3 +1,8 @@
+2001-06-08  Richard Henderson  <rth@redhat.com>
+
+       * config/alpha/linux.h (CPLUSPLUS_CPP_SPEC): New.
+       (LIB_SPEC): Mirror config/linux.h version.
+
 2001-06-08  Richard Henderson  <rth@redhat.com>
 
        * except.c (get_exception_pointer, get_exception_filter): Take a
index 1be967e680e9e35eb9fe681e76ad9dcfd7869f02..fb33b44d34a69487231e9cc71c2305cbaaa0311e 100644 (file)
@@ -28,8 +28,15 @@ Boston, MA 02111-1307, USA.  */
 "-Dlinux -Dunix -Asystem=linux -D_LONGLONG -D__alpha__ " \
 SUB_CPP_PREDEFINES
 
+/* The GNU C++ standard library requires that these macros be defined.  */
+#undef CPLUSPLUS_CPP_SPEC
+#define CPLUSPLUS_CPP_SPEC "-D_GNU_SOURCE %(cpp_cpu)"
+
 #undef LIB_SPEC
-#define LIB_SPEC "%{pg:-lgmon} %{pg:-lc_p} %{!pg:-lc}"
+#define LIB_SPEC \
+  "%{shared: -lc} \
+   %{!shared: %{pthread:-lpthread} \
+              %{profile:-lc_p} %{!profile: -lc}}"
 
 /* Show that we need a GP when profiling.  */
 #undef TARGET_PROFILING_NEEDS_GP