aboutsummaryrefslogtreecommitdiffstats
path: root/lang/gcc-ooo
diff options
context:
space:
mode:
authormaho <maho@FreeBSD.org>2005-08-28 16:00:11 +0800
committermaho <maho@FreeBSD.org>2005-08-28 16:00:11 +0800
commit74037487e3ba65a9a636e63819f119b41d31383c (patch)
treec2be8dc00458fb778d7db0d43ba9a56332c993d6 /lang/gcc-ooo
parentd80abbcf075fceeecd3240b8c786d8d43aa728a3 (diff)
downloadfreebsd-ports-gnome-74037487e3ba65a9a636e63819f119b41d31383c.tar.gz
freebsd-ports-gnome-74037487e3ba65a9a636e63819f119b41d31383c.tar.zst
freebsd-ports-gnome-74037487e3ba65a9a636e63819f119b41d31383c.zip
Fix build for 7-CURRENT
Diffstat (limited to 'lang/gcc-ooo')
-rw-r--r--lang/gcc-ooo/files/patch-freebsd-spec.h17
-rw-r--r--lang/gcc-ooo/files/patch-gcc+config.gcc11
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 2574c49ef854..d9e34a7bf9ef 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 000000000000..623ca3490d11
--- /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