aboutsummaryrefslogtreecommitdiffstats
path: root/lang
diff options
context:
space:
mode:
authorgahr <gahr@FreeBSD.org>2012-06-20 22:42:16 +0800
committergahr <gahr@FreeBSD.org>2012-06-20 22:42:16 +0800
commit6d3de5eebff9409ef8cf449da5cb5e13133eaf50 (patch)
tree25d061ac3d07bd7f2c330e03fddc30e3c95d9562 /lang
parentb13811b0299cc542160531ab337a1a4d6f35e489 (diff)
downloadfreebsd-ports-gnome-6d3de5eebff9409ef8cf449da5cb5e13133eaf50.tar.gz
freebsd-ports-gnome-6d3de5eebff9409ef8cf449da5cb5e13133eaf50.tar.zst
freebsd-ports-gnome-6d3de5eebff9409ef8cf449da5cb5e13133eaf50.zip
- Fix build on FreeBSD-10
Diffstat (limited to 'lang')
-rw-r--r--lang/g95/files/patch-gcc__config.gcc11
-rw-r--r--lang/g95/files/patch-gcc__config__freebsd-spec.h13
2 files changed, 21 insertions, 3 deletions
diff --git a/lang/g95/files/patch-gcc__config.gcc b/lang/g95/files/patch-gcc__config.gcc
new file mode 100644
index 000000000000..9744ad7fa6dc
--- /dev/null
+++ b/lang/g95/files/patch-gcc__config.gcc
@@ -0,0 +1,11 @@
+--- ../gcc-4.0.3/gcc/config.gcc.orig 2012-06-20 16:10:59.000000000 +0200
++++ ../gcc-4.0.3/gcc/config.gcc 2012-06-20 16:11:35.000000000 +0200
+@@ -412,6 +412,8 @@
+ tm_defines="${tm_defines} FBSD_MAJOR=8" ;;
+ *-*-freebsd9 | *-*-freebsd[9].*)
+ tm_defines="${tm_defines} FBSD_MAJOR=9" ;;
++ *-*-freebsd10 | *-*-freebsd10.*)
++ tm_defines="${tm_defines} FBSD_MAJOR=10" ;;
+ *)
+ echo 'Please update *-*-freebsd* in gcc/config.gcc'
+ exit 1
diff --git a/lang/g95/files/patch-gcc__config__freebsd-spec.h b/lang/g95/files/patch-gcc__config__freebsd-spec.h
index 847552c342c3..0ec4f3cc01ce 100644
--- a/lang/g95/files/patch-gcc__config__freebsd-spec.h
+++ b/lang/g95/files/patch-gcc__config__freebsd-spec.h
@@ -1,6 +1,13 @@
---- ../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 @@
+--- ../gcc-4.0.3/gcc/config/freebsd-spec.h.orig 2005-07-20 13:12:58.000000000 +0200
++++ ../gcc-4.0.3/gcc/config/freebsd-spec.h 2012-06-20 15:57:35.000000000 +0200
+@@ -51,11 +51,13 @@
+ #define FBSD_TARGET_OS_CPP_BUILTINS() \
+ do \
+ { \
+- if (FBSD_MAJOR == 9) \
++ if (FBSD_MAJOR == 10) \
++ builtin_define ("__FreeBSD__=10"); \
++ else if (FBSD_MAJOR == 9) \
builtin_define ("__FreeBSD__=9"); \
else if (FBSD_MAJOR == 8) \
builtin_define ("__FreeBSD__=8"); \