diff options
author | maho <maho@FreeBSD.org> | 2005-08-28 08:00:11 +0000 |
---|---|---|
committer | maho <maho@FreeBSD.org> | 2005-08-28 08:00:11 +0000 |
commit | 74037487e3ba65a9a636e63819f119b41d31383c (patch) | |
tree | c2be8dc00458fb778d7db0d43ba9a56332c993d6 /lang | |
parent | d80abbcf075fceeecd3240b8c786d8d43aa728a3 (diff) | |
download | FreeBSD-ports-74037487e3ba65a9a636e63819f119b41d31383c.zip FreeBSD-ports-74037487e3ba65a9a636e63819f119b41d31383c.tar.gz |
Fix build for 7-CURRENT
Diffstat (limited to 'lang')
-rw-r--r-- | lang/gcc-ooo/files/patch-freebsd-spec.h | 17 | ||||
-rw-r--r-- | lang/gcc-ooo/files/patch-gcc+config.gcc | 11 |
2 files changed, 25 insertions, 3 deletions
diff --git a/lang/gcc-ooo/files/patch-freebsd-spec.h b/lang/gcc-ooo/files/patch-freebsd-spec.h index 2574c49..d9e34a7 100644 --- a/lang/gcc-ooo/files/patch-freebsd-spec.h +++ b/lang/gcc-ooo/files/patch-freebsd-spec.h @@ -1,6 +1,17 @@ ---- gcc/config/freebsd-spec.h.orig Tue Mar 2 14:34:55 2004 -+++ gcc/config/freebsd-spec.h Fri Dec 17 11:22:26 2004 -@@ -130,11 +130,19 @@ +--- gcc/config/freebsd-spec.h.orig Wed Mar 3 07:34:55 2004 ++++ gcc/config/freebsd-spec.h Sat Aug 13 18:47:14 2005 +@@ -51,7 +51,9 @@ + #define FBSD_TARGET_OS_CPP_BUILTINS() \ + do \ + { \ +- if (FBSD_MAJOR == 6) \ ++ if (FBSD_MAJOR == 7) \ ++ builtin_define ("__FreeBSD__=7"); \ ++ else if (FBSD_MAJOR == 6) \ + builtin_define ("__FreeBSD__=6"); \ + else if (FBSD_MAJOR == 5) \ + builtin_define ("__FreeBSD__=5"); \ +@@ -130,11 +132,19 @@ }" #else #if FBSD_MAJOR >= 5 diff --git a/lang/gcc-ooo/files/patch-gcc+config.gcc b/lang/gcc-ooo/files/patch-gcc+config.gcc new file mode 100644 index 0000000..623ca34 --- /dev/null +++ b/lang/gcc-ooo/files/patch-gcc+config.gcc @@ -0,0 +1,11 @@ +--- gcc/config.gcc.orig Thu Apr 22 00:12:35 2004 ++++ gcc/config.gcc Sat Aug 13 10:17:42 2005 +@@ -400,6 +400,8 @@ + tm_defines="${tm_defines} FBSD_MAJOR=5" ;; + *-*-freebsd6 | *-*-freebsd[6].*) + tm_defines="${tm_defines} FBSD_MAJOR=6" ;; ++ *-*-freebsd7 | *-*-freebsd[7].*) ++ tm_defines="${tm_defines} FBSD_MAJOR=7" ;; + *) + echo 'Please update *-*-freebsd* in gcc/config.gcc' + exit 1 |