summaryrefslogtreecommitdiff
path: root/package/openjdk7
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2015-08-30 21:43:18 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2015-08-30 21:43:25 +0200
commit376a0c383c9228bab500f01f4f1211d61269b06d (patch)
treea64f0b0fa09de34da0c802b1b19691581f33e283 /package/openjdk7
parent86b804d0cdd0f6a78089479270e740cd81195e4e (diff)
add CPPFLAGS to find X11 headers, fix linking when libc iconv is used
Diffstat (limited to 'package/openjdk7')
-rw-r--r--package/openjdk7/Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/package/openjdk7/Makefile b/package/openjdk7/Makefile
index 1e9572a64..6ed54e3f8 100644
--- a/package/openjdk7/Makefile
+++ b/package/openjdk7/Makefile
@@ -41,10 +41,13 @@ $(eval $(call PKG_template,OPENJDK7,openjdk7,$(PKG_VERSION)-${PKG_RELEASE},${PKG
CONFIG_STYLE:= basic
-# uclibc needs -liconv
-ifeq ($(ADK_TARGET_LIB_UCLIBC)$(ADK_TARGET_LIB_UCLIBC_NG),y)
+# uclibc with iconv-tiny/libiconv needs -liconv
+ifeq ($(ADK_TARGET_LIBC_ICONV),)
+ifeq ($(ADK_TARGET_LIB_UCLIBC_NG),y)
TARGET_LIBS:= -liconv -lm
endif
+endif
+
# for UINTPTR_MAX in stdint.h
TARGET_CFLAGS+= -D__STDC_LIMIT_MACROS
# segfaults with march=pentium-m/atom
@@ -115,6 +118,7 @@ OPENJDK_NATIVE_ENV:= JAVACFLAGS="-cp ${STAGING_HOST_DIR}/usr/share/java/libgcj-$
LD_LIBRARY_PATH=$(STAGING_HOST_DIR)/usr/lib:$(STAGING_HOST_DIR)/usr/lib64 \
BOOTCLASSPATH="$(STAGING_HOST_DIR)/usr/share/jamvm/classes.zip:$(STAGING_HOST_DIR)/usr/share/classpath/glibj.zip" \
FFI_LDFLAGS='$(HOST_LDFLAGS)' \
+ OTHER_CPPFLAGS='$(HOST_CPPFLAGS)' \
OTHER_LDFLAGS='$(HOST_LDFLAGS)' \
ALSA_CPPFLAGS='$(HOST_CPPFLAGS)' \
ALT_OPENWIN_HOME='$(STAGING_HOST_DIR)/usr' \