aboutsummaryrefslogtreecommitdiffstats
path: root/lang/llvm-gcc4
diff options
context:
space:
mode:
authorpav <pav@FreeBSD.org>2007-12-23 01:16:25 +0800
committerpav <pav@FreeBSD.org>2007-12-23 01:16:25 +0800
commitef1786f3ea023527426032c605cd0234b8c9d738 (patch)
treee8effe8175454e2f6acf7392ad75abaa4cf433e7 /lang/llvm-gcc4
parent09958fdda81699ee0c587fa3862c839807a2106d (diff)
downloadfreebsd-ports-gnome-ef1786f3ea023527426032c605cd0234b8c9d738.tar.gz
freebsd-ports-gnome-ef1786f3ea023527426032c605cd0234b8c9d738.tar.zst
freebsd-ports-gnome-ef1786f3ea023527426032c605cd0234b8c9d738.zip
- Fix build on FreeBSD 8.x
Submitted by: Wesley Shields <wxs@atarininja.org>
Diffstat (limited to 'lang/llvm-gcc4')
-rw-r--r--lang/llvm-gcc4/files/patch-gcc_config.gcc11
-rw-r--r--lang/llvm-gcc4/files/patch-gcc_config_freebsd-spec.h13
2 files changed, 24 insertions, 0 deletions
diff --git a/lang/llvm-gcc4/files/patch-gcc_config.gcc b/lang/llvm-gcc4/files/patch-gcc_config.gcc
new file mode 100644
index 000000000000..acdd3593365b
--- /dev/null
+++ b/lang/llvm-gcc4/files/patch-gcc_config.gcc
@@ -0,0 +1,11 @@
+--- ../gcc/config.gcc.orig 2007-12-20 19:57:41.000000000 -0500
++++ ../gcc/config.gcc 2007-12-20 19:58:08.000000000 -0500
+@@ -431,6 +431,8 @@
+ *-*-freebsd7 | *-*-freebsd[7].*)
+ tm_defines="${tm_defines} FBSD_MAJOR=7" ;;
+ # APPLE LOCAL end LLVM
++ *-*-freebsd8 | *-*-freebsd[8].*)
++ tm_defines="${tm_defines} FBSD_MAJOR=8" ;;
+ *)
+ echo 'Please update *-*-freebsd* in gcc/config.gcc'
+ exit 1
diff --git a/lang/llvm-gcc4/files/patch-gcc_config_freebsd-spec.h b/lang/llvm-gcc4/files/patch-gcc_config_freebsd-spec.h
new file mode 100644
index 000000000000..5ce9d438d0ab
--- /dev/null
+++ b/lang/llvm-gcc4/files/patch-gcc_config_freebsd-spec.h
@@ -0,0 +1,13 @@
+--- ../gcc/config/freebsd-spec.h.orig 2007-12-21 20:20:55.000000000 -0500
++++ ../gcc/config/freebsd-spec.h 2007-12-21 20:21:32.000000000 -0500
+@@ -75,7 +75,9 @@
+ #define FBSD_TARGET_OS_CPP_BUILTINS() \
+ do \
+ { \
+- if (FBSD_MAJOR == 7) \
++ if (FBSD_MAJOR == 8) \
++ builtin_define ("__FreeBSD__=8"); \
++ else if (FBSD_MAJOR == 7) \
+ builtin_define ("__FreeBSD__=7"); \
+ else if (FBSD_MAJOR == 6) \
+ builtin_define ("__FreeBSD__=6"); \