blob: 32de427806a9b14d538ae95528a78adcaa981a2e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
$NetBSD: patch-jdk_make_java_npt_Makefile,v 1.3 2015/04/27 19:24:17 jperkin Exp $
GCC needs libiconv.
--- jdk/make/java/npt/Makefile.orig 2014-01-01 05:53:33.000000000 +0000
+++ jdk/make/java/npt/Makefile
@@ -38,6 +38,12 @@ FILES_m = mapfile-vers
include $(BUILDDIR)/common/Defs.gmk
+ifeq ($(PLATFORM), solaris)
+ ifeq ($(CC_VERSION), gcc)
+ OTHER_LDLIBS += -L${BUILDLINK_PREFIX.iconv}/lib -liconv
+ endif # CC_VERSION
+endif # PLATFORM
+
SRCDIR=$(SHARE_SRC)/npt
PSRCDIR=$(PLATFORM_SRC)/npt
@@ -76,7 +82,7 @@ endif
# Add location of iconv headers
ifeq ($(PLATFORM), bsd)
- ifneq ($(OS_NAME), netbsd)
+ ifeq ($(OS_NAME), freebsd)
CPPFLAGS += -I$(PACKAGE_PATH)/include
OTHER_LDLIBS += -L$(PACKAGE_PATH)/lib -liconv
endif
|