summaryrefslogtreecommitdiffstats
path: root/gcc/config/alpha
diff options
context:
space:
mode:
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2001-06-09 00:39:04 +0000
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2001-06-09 00:39:04 +0000
commitd83b3ef0757430c8c7a3cb30e9f5d105a30f4021 (patch)
tree65400517c22b2798d090ceb4a6b8adecfd03e4e9 /gcc/config/alpha
parent708222264449bd8124e02554289a95d50322264b (diff)
downloadppe42-gcc-d83b3ef0757430c8c7a3cb30e9f5d105a30f4021.tar.gz
ppe42-gcc-d83b3ef0757430c8c7a3cb30e9f5d105a30f4021.zip
* config/alpha/linux.h (CPLUSPLUS_CPP_SPEC): New.
(LIB_SPEC): Mirror config/linux.h version. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@43067 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/alpha')
-rw-r--r--gcc/config/alpha/linux.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/gcc/config/alpha/linux.h b/gcc/config/alpha/linux.h
index 1be967e680e..fb33b44d34a 100644
--- a/gcc/config/alpha/linux.h
+++ b/gcc/config/alpha/linux.h
@@ -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
OpenPOWER on IntegriCloud