summaryrefslogtreecommitdiff
path: root/lang
diff options
context:
space:
mode:
authorDavid E. O'Brien <obrien@FreeBSD.org>1999-08-16 00:12:21 +0000
committerDavid E. O'Brien <obrien@FreeBSD.org>1999-08-16 00:12:21 +0000
commitc2530c49c043390079e3ed291e3c893af2a61b7d (patch)
tree6254a44f2f10e133928eecf93287b3ec61752ee8 /lang
parentMisc fixes. (diff)
Make -pthread work again -- pulled too much in from src/contrib/egcs/
Notes
Notes: svn path=/head/; revision=20740
Diffstat (limited to 'lang')
-rw-r--r--lang/egcs/files/freebsd.h6
-rw-r--r--lang/gcc295/files/freebsd.h6
2 files changed, 8 insertions, 4 deletions
diff --git a/lang/egcs/files/freebsd.h b/lang/egcs/files/freebsd.h
index 40ed10359025..7cac2062fa2f 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. */
diff --git a/lang/gcc295/files/freebsd.h b/lang/gcc295/files/freebsd.h
index 40ed10359025..7cac2062fa2f 100644
--- a/lang/gcc295/files/freebsd.h
+++ b/lang/gcc295/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. */