aboutsummaryrefslogtreecommitdiffstats
path: root/java/jdk15
diff options
context:
space:
mode:
authorglewis <glewis@FreeBSD.org>2010-02-21 14:16:51 +0800
committerglewis <glewis@FreeBSD.org>2010-02-21 14:16:51 +0800
commit9408e12f9dd5d7685db9c623b066980c57ca8a12 (patch)
treea5973a820055555d88afa451bad00c431bf68c66 /java/jdk15
parent26aeb868b6b14cf024f375be1ee39942f8d071ce (diff)
downloadfreebsd-ports-gnome-9408e12f9dd5d7685db9c623b066980c57ca8a12.tar.gz
freebsd-ports-gnome-9408e12f9dd5d7685db9c623b066980c57ca8a12.tar.zst
freebsd-ports-gnome-9408e12f9dd5d7685db9c623b066980c57ca8a12.zip
. Attempt to fix the build for recent 8-STABLE and 9-CURRENT which have
sigignore(3). Feature safe: yes
Diffstat (limited to 'java/jdk15')
-rw-r--r--java/jdk15/files/patch-j2se::common::Defs-bsd.gmk24
1 files changed, 24 insertions, 0 deletions
diff --git a/java/jdk15/files/patch-j2se::common::Defs-bsd.gmk b/java/jdk15/files/patch-j2se::common::Defs-bsd.gmk
new file mode 100644
index 000000000000..d71e8363bf41
--- /dev/null
+++ b/java/jdk15/files/patch-j2se::common::Defs-bsd.gmk
@@ -0,0 +1,24 @@
+$FreeBSD$
+
+--- ../../j2se/make/common/Defs-bsd.gmk 2010-02-14 14:16:23.000000000 -0800
++++ ../../j2se/make/common/Defs-bsd.gmk 2010-02-14 14:19:21.000000000 -0800
+@@ -420,9 +420,19 @@
+ override HAVE_GETHRVTIME = false
+ ifeq ($(TRUE_PLATFORM), NetBSD)
+ override HAVE_SIGIGNORE = true
++endif
++ifeq ($(TRUE_PLATFORM),FreeBSD)
++OS_RELDATE := $(shell sysctl kern.osreldate | cut -d' ' -f2)
++HAS_SIGIGNORE := $(shell if [ $(OS_RELDATE) -ge 800502 -a $(OS_RELDATE) -lt 900000 -o $(OS_RELDATE) -ge 900003 ]; then echo "1"; fi)
++ifeq ($(HAS_SIGIGNORE),1)
++override HAVE_SIGIGNORE = true
+ else
+ override HAVE_SIGIGNORE = false
+ endif
++endif
++ifeq ($(TRUE_PLATFORM), OpenBSD)
++override HAVE_SIGIGNORE = false
++endif
+ override LEX_LIBRARY = -lfl
+ ifeq ($(STATIC_CXX),true)
+ override LIBCXX = -Wl,-Bstatic -lstdc++ -lgcc -Wl,-Bdynamic