Skip to content

Commit

Permalink
Do not create duplicate definitions. From FreeBSD ports.
Browse files Browse the repository at this point in the history
This fixes package on FreeBSD.
  • Loading branch information
asau committed Sep 23, 2013
1 parent f22a70f commit 86196f7
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 1 deletion.
5 changes: 5 additions & 0 deletions lang/g95/PLIST.FreeBSD
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
@comment $NetBSD: PLIST.FreeBSD,v 1.1 2013/09/23 17:56:32 asau Exp $
lib/gcc-lib/${MACHINE_GNU_PLATFORM}/4.1.2/crtbegin.o
lib/gcc-lib/${MACHINE_GNU_PLATFORM}/4.1.2/crtbeginS.o
lib/gcc-lib/${MACHINE_GNU_PLATFORM}/4.1.2/crtend.o
lib/gcc-lib/${MACHINE_GNU_PLATFORM}/4.1.2/crtendS.o
3 changes: 2 additions & 1 deletion lang/g95/distinfo
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
$NetBSD: distinfo,v 1.17 2013/09/20 23:06:07 joerg Exp $
$NetBSD: distinfo,v 1.18 2013/09/23 17:56:32 asau Exp $

SHA1 (g95_source.tgz) = b5e503fd6459b65cbda73190685f9490230d9cff
RMD160 (g95_source.tgz) = 98d03e9a1835f4b3553a72a798bdf1d90a757176
Expand All @@ -13,6 +13,7 @@ SHA1 (patch-gcc_Makefile.in) = cc5cc142a85612ebf2d38513e4b05db0ae795268
SHA1 (patch-gcc_config.gcc) = 9da8f32372c64b1590d97e3f26aec0d5652cc959
SHA1 (patch-gcc_config_dragonfly-spec.h) = bf0c97caa314714542cf8cc63fdf0c73bda80511
SHA1 (patch-gcc_config_dragonfly.h) = 6d46b7b4637a20b36e19a15e1eaffdfff6638de9
SHA1 (patch-gcc_config_freebsd-spec.h) = 8a1b78b479a386caec14e6a6333fde4a8af6de2c
SHA1 (patch-gcc_config_i386_dragonfly.h) = 7d60d29b5ae636d69650e8c412a94f7a6045f6d9
SHA1 (patch-gcc_config_i386_dragonfly64.h) = 9d2d8512a913e58055fa5c1b7d85a109117dcfba
SHA1 (patch-gcc_config_t-dragonfly) = dd8d5919af737dfb9e3c18be9a41b4e2c6f31155
Expand Down
23 changes: 23 additions & 0 deletions lang/g95/patches/patch-gcc_config_freebsd-spec.h
Original file line number Diff line number Diff line change
@@ -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"); \

0 comments on commit 86196f7

Please sign in to comment.