forked from jsonn/pkgsrc
-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Do not create duplicate definitions. From FreeBSD ports.
This fixes package on FreeBSD.
- Loading branch information
asau
committed
Sep 23, 2013
1 parent
f22a70f
commit 86196f7
Showing
3 changed files
with
30 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"); \ |