aboutsummaryrefslogtreecommitdiff
path: root/lang/gcc-ooo
diff options
context:
space:
mode:
authorMaho Nakata <maho@FreeBSD.org>2005-08-28 08:00:11 +0000
committerMaho Nakata <maho@FreeBSD.org>2005-08-28 08:00:11 +0000
commit775ef27fd9eeae68a76cedcf6f8db406e7ee219a (patch)
tree43342394587a5c8e367ed033175df9559853fcea /lang/gcc-ooo
parent48c35e710c5685316d03dd9afd6b31e4702f77ae (diff)
downloadports-775ef27fd9eeae68a76cedcf6f8db406e7ee219a.tar.gz
ports-775ef27fd9eeae68a76cedcf6f8db406e7ee219a.zip
Notes
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