diff options
author | Pav Lucistnik <pav@FreeBSD.org> | 2007-12-22 17:16:25 +0000 |
---|---|---|
committer | Pav Lucistnik <pav@FreeBSD.org> | 2007-12-22 17:16:25 +0000 |
commit | 564381c8ea988bd52424d255ed5d52d68347e1e2 (patch) | |
tree | a78d5f27748dcfb1074e4e0dc86817922cc3d5c7 /lang/llvm-gcc4 | |
parent | 4fe4deb1d2ea181f7daa6fc5d77c28e4c662076a (diff) | |
download | ports-564381c8ea988bd52424d255ed5d52d68347e1e2.tar.gz ports-564381c8ea988bd52424d255ed5d52d68347e1e2.zip |
Notes
Diffstat (limited to 'lang/llvm-gcc4')
-rw-r--r-- | lang/llvm-gcc4/files/patch-gcc_config.gcc | 11 | ||||
-rw-r--r-- | lang/llvm-gcc4/files/patch-gcc_config_freebsd-spec.h | 13 |
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"); \ |