diff options
author | asau <asau@pkgsrc.org> | 2013-09-23 17:56:32 +0000 |
---|---|---|
committer | asau <asau@pkgsrc.org> | 2013-09-23 17:56:32 +0000 |
commit | 8a2b83405c4b1dbc4acd6885e520bef4c66e0e57 (patch) | |
tree | 600a885bc740591266359ca92c99b97ef54cbe28 /lang/g95/patches | |
parent | f373e3d587f080e98807f98fcb9f0e5e414bc4a7 (diff) | |
download | pkgsrc-8a2b83405c4b1dbc4acd6885e520bef4c66e0e57.tar.gz |
Do not create duplicate definitions. From FreeBSD ports.
This fixes package on FreeBSD.
Diffstat (limited to 'lang/g95/patches')
-rw-r--r-- | lang/g95/patches/patch-gcc_config_freebsd-spec.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/lang/g95/patches/patch-gcc_config_freebsd-spec.h b/lang/g95/patches/patch-gcc_config_freebsd-spec.h new file mode 100644 index 00000000000..675efa8b81f --- /dev/null +++ b/lang/g95/patches/patch-gcc_config_freebsd-spec.h @@ -0,0 +1,23 @@ +$NetBSD: patch-gcc_config_freebsd-spec.h,v 1.1 2013/09/23 17:56:32 asau Exp $ + +Do not create duplicate definitions. +From FreeBSD ports. + +--- ../gcc-4.1.2/gcc/config/freebsd-spec.h.orig 2005-07-20 13:12:58.000000000 +0200 ++++ ../gcc-4.1.2/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"); \ +- if (FBSD_MAJOR == 7) \ ++ else if (FBSD_MAJOR == 7) \ + builtin_define ("__FreeBSD__=7"); \ + else if (FBSD_MAJOR == 6) \ + builtin_define ("__FreeBSD__=6"); \ |