aboutsummaryrefslogtreecommitdiffstats
path: root/lang/egcs
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>1999-08-16 08:12:21 +0800
committerobrien <obrien@FreeBSD.org>1999-08-16 08:12:21 +0800
commit0ec6bab2e64814719dc3c52acc8b3783df229c32 (patch)
tree3aa55034591f2f6b4241f35afd646e7c5b428302 /lang/egcs
parentd417fc44c64afab9e32055ddf6d89dc2374f9f3b (diff)
downloadfreebsd-ports-graphics-0ec6bab2e64814719dc3c52acc8b3783df229c32.tar.gz
freebsd-ports-graphics-0ec6bab2e64814719dc3c52acc8b3783df229c32.tar.zst
freebsd-ports-graphics-0ec6bab2e64814719dc3c52acc8b3783df229c32.zip
Make -pthread work again -- pulled too much in from src/contrib/egcs/
Diffstat (limited to 'lang/egcs')
-rw-r--r--lang/egcs/files/freebsd.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/lang/egcs/files/freebsd.h b/lang/egcs/files/freebsd.h
index 40ed1035902..7cac2062fa2 100644
--- a/lang/egcs/files/freebsd.h
+++ b/lang/egcs/files/freebsd.h
@@ -1,4 +1,4 @@
-/* $Id: freebsd.h,v 1.8 1999/07/25 03:34:38 obrien Exp $ */
+/* $Id: freebsd.h,v 1.4 1999/08/05 16:05:58 obrien Exp $ */
/* Base configuration file for all FreeBSD targets.
Copyright (C) 1999 Free Software Foundation, Inc.
@@ -55,7 +55,7 @@ Boston, MA 02111-1307, USA. */
/* Place spaces around this string. We depend on string splicing to produce
the final CPP_PREDEFINES value. */
-#define CPP_FBSD_PREDEFINES " -Dunix -D__FreeBSD__ -Asystem(unix) -Asystem(FreeBSD) "
+#define CPP_FBSD_PREDEFINES " -Dunix -D__FreeBSD__=4 -Asystem(unix) -Asystem(FreeBSD) "
/* Provide a LIB_SPEC appropriate for FreeBSD. Just select the appropriate
libc, depending on whether we're doing profiling or need threads support.
@@ -70,10 +70,12 @@ Boston, MA 02111-1307, USA. */
%{kthread:-lpthread_p -lc_p}} \
%{pthread:-lc_r_p}}}"
+#ifdef COMMENT_OUT /* only redefine LIBGCC_SPEC for our native GCC */
/* Tell gcc to locate libgcc.a for us according to the -m rules. */
#undef LIBGCC_SPEC
#define LIBGCC_SPEC \
"%{!shared:%{!pthread:%{!kthread:libgcc.a%s}}%{pthread|kthread:libgcc_r.a%s}}"
+#endif
/* Code generation parameters. */