From c2530c49c043390079e3ed291e3c893af2a61b7d Mon Sep 17 00:00:00 2001 From: "David E. O'Brien" Date: Mon, 16 Aug 1999 00:12:21 +0000 Subject: Make -pthread work again -- pulled too much in from src/contrib/egcs/ --- lang/egcs/files/freebsd.h | 6 ++++-- lang/gcc295/files/freebsd.h | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) (limited to 'lang') 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. */ -- cgit v1.2.3