diff options
Diffstat (limited to 'lang/gcc30/files/patch-ar')
-rw-r--r-- | lang/gcc30/files/patch-ar | 46 |
1 files changed, 37 insertions, 9 deletions
diff --git a/lang/gcc30/files/patch-ar b/lang/gcc30/files/patch-ar index e6a4c8ad30b0..955024de7baf 100644 --- a/lang/gcc30/files/patch-ar +++ b/lang/gcc30/files/patch-ar @@ -1,16 +1,44 @@ ---- gcc/config/freebsd.h.orig Mon Nov 22 22:17:32 1999 -+++ gcc/config/freebsd.h Fri Feb 4 05:29:31 2000 -@@ -48,13 +48,26 @@ +--- gcc/config/freebsd.h.orig Wed May 30 16:05:30 2001 ++++ gcc/config/freebsd.h Mon Jun 18 18:46:50 2001 +@@ -50,29 +50,32 @@ #undef WORD_SWITCH_TAKES_ARG #define WORD_SWITCH_TAKES_ARG(STR) (FBSD_WORD_SWITCH_TAKES_ARG(STR)) +/* Place spaces around this string. We depend on string splicing to produce + the final CPP_PREDEFINES value. */ -+#define FBSD_CPP_PREDEFINES " -Dunix -D__FreeBSD__ -Asystem(unix) -Asystem(bsd) -Asystem(FreeBSD) " -+ -+#undef CPP_PREDEFINES -+#define CPP_PREDEFINES FBSD_CPP_PREDEFINES + + #if FBSD_MAJOR == 6 + #define FBSD_CPP_PREDEFINES \ +- "-D__FreeBSD__=6 -Dunix -D__ELF__ -Asystem=unix -Asystem=bsd -Asystem=FreeBSD" ++ " -D__FreeBSD__=6 -Dunix -Asystem=unix -Asystem=bsd -Asystem=FreeBSD " + #endif + + #if FBSD_MAJOR == 5 + #define FBSD_CPP_PREDEFINES \ +- "-D__FreeBSD__=5 -Dunix -D__ELF__ -Asystem=unix -Asystem=bsd -Asystem=FreeBSD" ++ " -D__FreeBSD__=5 -Dunix -Asystem=unix -Asystem=bsd -Asystem=FreeBSD " + #endif + + #if FBSD_MAJOR == 4 + #define FBSD_CPP_PREDEFINES \ +- "-D__FreeBSD__=4 -Dunix -D__ELF__ -Asystem=unix -Asystem=bsd -Asystem=FreeBSD" ++ " -D__FreeBSD__=4 -Dunix -Asystem=unix -Asystem=bsd -Asystem=FreeBSD " + #endif + + #if FBSD_MAJOR == 3 + #define FBSD_CPP_PREDEFINES \ +- "-D__FreeBSD__=3 -Dunix -D__ELF__ -Asystem=unix -Asystem=bsd -Asystem=FreeBSD" ++ " -D__FreeBSD__=3 -Dunix -Asystem=unix -Asystem=bsd -Asystem=FreeBSD " + #endif + + #ifndef FBSD_CPP_PREDEFINES + #define FBSD_CPP_PREDEFINES \ +- "-D__FreeBSD__ -Dunix -D__ELF__ -Asystem=unix -Asystem=bsd -Asystem=FreeBSD" ++ " -D__FreeBSD__ -Dunix -Asystem=unix -Asystem=bsd -Asystem=FreeBSD " + #endif + + #undef CPP_PREDEFINES +@@ -81,10 +84,16 @@ /* Provide a CPP_SPEC appropriate for FreeBSD. We just deal with the GCC option `-posix', and PIC issues. */ @@ -28,5 +56,5 @@ +#undef CPP_SPEC +#define CPP_SPEC FBSD_CPP_SPEC - /* Provide a LIB_SPEC appropriate for FreeBSD. Just select the appropriate - libc, depending on whether we're doing profiling or need threads support. + /* Provide a LIB_SPEC appropriate for FreeBSD as configured and as + required by the user-land thread model. Before __FreeBSD_version |