diff options
author | pav <pav@FreeBSD.org> | 2007-12-27 00:45:31 +0800 |
---|---|---|
committer | pav <pav@FreeBSD.org> | 2007-12-27 00:45:31 +0800 |
commit | 5f0c752002fa91a0043c9ea380da3408c106294b (patch) | |
tree | 8834c24014e2989a65e837cea50e2332fe4d1a5a /lang | |
parent | d5e34832ce00b9310a54a7d30f0094cba60713b6 (diff) | |
download | freebsd-ports-gnome-5f0c752002fa91a0043c9ea380da3408c106294b.tar.gz freebsd-ports-gnome-5f0c752002fa91a0043c9ea380da3408c106294b.tar.zst freebsd-ports-gnome-5f0c752002fa91a0043c9ea380da3408c106294b.zip |
- Fix build on FreeBSD 8.x
Submitted by: Wesley Shields <wxs@atarininja.org>
Diffstat (limited to 'lang')
-rw-r--r-- | lang/g95/files/patch-gcc__config__freebsd-spec.h | 11 | ||||
-rw-r--r-- | lang/gcc-ooo/files/patch-freebsd-spec.h | 30 | ||||
-rw-r--r-- | lang/gcc-ooo/files/patch-gcc+config.gcc | 8 | ||||
-rw-r--r-- | lang/gpc/files/patch-gcc__config__freebsd-spec.h | 2 |
4 files changed, 34 insertions, 17 deletions
diff --git a/lang/g95/files/patch-gcc__config__freebsd-spec.h b/lang/g95/files/patch-gcc__config__freebsd-spec.h new file mode 100644 index 000000000000..847552c342c3 --- /dev/null +++ b/lang/g95/files/patch-gcc__config__freebsd-spec.h @@ -0,0 +1,11 @@ +--- ../gcc-4.0.3/gcc/config/freebsd-spec.h.orig 2007-12-26 10:31:59.000000000 -0500 ++++ ../gcc-4.0.3/gcc/config/freebsd-spec.h 2007-12-26 10:32:21.000000000 -0500 +@@ -55,7 +55,7 @@ + builtin_define ("__FreeBSD__=9"); \ + else if (FBSD_MAJOR == 8) \ + builtin_define ("__FreeBSD__=8"); \ +- if (FBSD_MAJOR == 7) \ ++ else if (FBSD_MAJOR == 7) \ + builtin_define ("__FreeBSD__=7"); \ + else if (FBSD_MAJOR == 6) \ + builtin_define ("__FreeBSD__=6"); \ diff --git a/lang/gcc-ooo/files/patch-freebsd-spec.h b/lang/gcc-ooo/files/patch-freebsd-spec.h index d9e34a7bf9ef..479a375391e6 100644 --- a/lang/gcc-ooo/files/patch-freebsd-spec.h +++ b/lang/gcc-ooo/files/patch-freebsd-spec.h @@ -1,17 +1,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 @@ +--- gcc/config/freebsd-spec.h.orig 2004-03-02 17:34:55.000000000 -0500 ++++ gcc/config/freebsd-spec.h 2007-12-26 09:17:49.000000000 -0500 +@@ -51,7 +51,11 @@ #define FBSD_TARGET_OS_CPP_BUILTINS() \ do \ { \ - if (FBSD_MAJOR == 6) \ -+ 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"); \ else if (FBSD_MAJOR == 5) \ builtin_define ("__FreeBSD__=5"); \ -@@ -130,11 +132,19 @@ +@@ -130,6 +134,7 @@ }" #else #if FBSD_MAJOR >= 5 @@ -19,15 +21,17 @@ #define FBSD_LIB_SPEC " \ %{!shared: \ %{!pg: %{pthread:-lc_r} -lc} \ - %{pg: %{pthread:-lc_r_p} -lc_p} \ - }" -+#else -+#define FBSD_LIB_SPEC " \ -+ %{!shared: \ +@@ -138,6 +143,13 @@ + #else + #define FBSD_LIB_SPEC " \ + %{!shared: \ + %{!pg: %{pthread:-lpthread} -lc} \ + %{pg: %{pthread:-lpthread_p} -lc_p} \ + }" +#endif /* deal with FreeBSD 5.0 - 5.2.1 */ - #else - #define FBSD_LIB_SPEC " \ - %{!shared: \ ++#else ++#define FBSD_LIB_SPEC " \ ++ %{!shared: \ + %{!pg: \ + %{!pthread:-lc} \ + %{pthread:-lc_r}} \ diff --git a/lang/gcc-ooo/files/patch-gcc+config.gcc b/lang/gcc-ooo/files/patch-gcc+config.gcc index 623ca3490d11..9660d5a5db0c 100644 --- a/lang/gcc-ooo/files/patch-gcc+config.gcc +++ b/lang/gcc-ooo/files/patch-gcc+config.gcc @@ -1,11 +1,13 @@ ---- 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 @@ +--- gcc/config.gcc.orig 2004-04-21 11:12:35.000000000 -0400 ++++ gcc/config.gcc 2007-12-26 09:18:23.000000000 -0500 +@@ -400,6 +400,10 @@ 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" ;; ++ *-*-freebsd8 | *-*-freebsd[8].*) ++ tm_defines="${tm_defines} FBSD_MAJOR=8" ;; *) echo 'Please update *-*-freebsd* in gcc/config.gcc' exit 1 diff --git a/lang/gpc/files/patch-gcc__config__freebsd-spec.h b/lang/gpc/files/patch-gcc__config__freebsd-spec.h index 9d76aad68eb3..f2dd37c2e2ae 100644 --- a/lang/gpc/files/patch-gcc__config__freebsd-spec.h +++ b/lang/gpc/files/patch-gcc__config__freebsd-spec.h @@ -9,7 +9,7 @@ + builtin_define ("__FreeBSD__=9"); \ + else if (FBSD_MAJOR == 8) \ + builtin_define ("__FreeBSD__=8"); \ -+ if (FBSD_MAJOR == 7) \ ++ else if (FBSD_MAJOR == 7) \ + builtin_define ("__FreeBSD__=7"); \ + else if (FBSD_MAJOR == 6) \ builtin_define ("__FreeBSD__=6"); \ |