aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/alpha/osf.h
diff options
context:
space:
mode:
authorRichard Henderson <rth@cygnus.com>1999-06-02 05:31:27 -0700
committerRichard Henderson <rth@gcc.gnu.org>1999-06-02 05:31:27 -0700
commitc04635cceb790a94f95afae99f9f04c4eacb87d9 (patch)
treefb7bd122bd1b91cf8881f4f2b734b050205ea318 /gcc/config/alpha/osf.h
parent99fd3aa53848b51fdd189d0814c744ce4b89de88 (diff)
downloadgcc-c04635cceb790a94f95afae99f9f04c4eacb87d9.zip
gcc-c04635cceb790a94f95afae99f9f04c4eacb87d9.tar.gz
gcc-c04635cceb790a94f95afae99f9f04c4eacb87d9.tar.bz2
alpha.c (override_options): Thinko in last patch.
* alpha.c (override_options): Thinko in last patch. * alpha/osf.h (CPP_SUBTARGET_SPEC): Define. (LIB_SPEC): Recognize -pthread. From-SVN: r27316
Diffstat (limited to 'gcc/config/alpha/osf.h')
-rw-r--r--gcc/config/alpha/osf.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/gcc/config/alpha/osf.h b/gcc/config/alpha/osf.h
index 956961f..cd0669a 100644
--- a/gcc/config/alpha/osf.h
+++ b/gcc/config/alpha/osf.h
@@ -30,9 +30,14 @@ Boston, MA 02111-1307, USA. */
-Dunix -D__osf__ -D_LONGLONG -DSYSTYPE_BSD \
-D_SYSTYPE_BSD -Asystem(unix) -Asystem(xpg4)"
+#define CPP_SUBTARGET_SPEC \
+"%{pthread:-D_REENTRANT}"
+
/* Under OSF4, -p and -pg require -lprof1, and -lprof1 requires -lpdf. */
-#define LIB_SPEC "%{p:-lprof1 -lpdf} %{pg:-lprof1 -lpdf} %{a:-lprof2} -lc"
+#define LIB_SPEC \
+"%{p:-lprof1 -lpdf} %{pg:-lprof1 -lpdf} %{a:-lprof2} \
+ %{pthread: -lpthread -lmach -lexc} -lc"
/* Pass "-G 8" to ld because Alpha's CC does. Pass -O3 if we are
optimizing, -O1 if we are not. Pass -shared, -non_shared or