diff options
author | Timo Teräs <timo.teras@iki.fi> | 2014-02-19 07:48:39 +0000 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2014-02-19 07:50:34 +0000 |
commit | 8df009284c4c1f79abd2360b5c373fb391c34706 (patch) | |
tree | faebca0cc634d1472f721acbe1e63214461e88f0 /main/openjdk6/icedtea-hotspot-noagent-musl.patch | |
parent | 20eae13751573f2ba970f44d16674cbaaf69e101 (diff) | |
download | aports-8df009284c4c1f79abd2360b5c373fb391c34706.tar.bz2 aports-8df009284c4c1f79abd2360b5c373fb391c34706.tar.xz |
main/openjdk6: fix musl build
exclude hotspot agent as thread_db is not properly supported
in musl.
Diffstat (limited to 'main/openjdk6/icedtea-hotspot-noagent-musl.patch')
-rw-r--r-- | main/openjdk6/icedtea-hotspot-noagent-musl.patch | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/main/openjdk6/icedtea-hotspot-noagent-musl.patch b/main/openjdk6/icedtea-hotspot-noagent-musl.patch new file mode 100644 index 000000000..0128241a9 --- /dev/null +++ b/main/openjdk6/icedtea-hotspot-noagent-musl.patch @@ -0,0 +1,56 @@ +--- openjdk.orig/hotspot/make/linux/makefiles/sa.make ++++ openjdk/hotspot/make/linux/makefiles/sa.make +@@ -59,9 +59,12 @@ + + # if $(AGENT_DIR) does not exist, we don't build SA + # also, we don't build SA on Itanium, PowerPC, ARM or zero. ++# check for thread_db.h too (musl does not have it). + + all: +- if [ -d $(AGENT_DIR) -a "$(SRCARCH)" != "ia64" \ ++ if [ -d $(AGENT_DIR) \ ++ -a -f /usr/include/thread_db.h \ ++ -a "$(SRCARCH)" != "ia64" \ + -a "$(SRCARCH)" != "arm" \ + -a "$(SRCARCH)" != "ppc" \ + -a "$(SRCARCH)" != "zero" ] ; then \ +--- openjdk.orig/hotspot/make/linux/makefiles/saproc.make ++++ openjdk/hotspot/make/linux/makefiles/saproc.make +@@ -54,10 +54,13 @@ + + # if $(AGENT_DIR) does not exist, we don't build SA + # also, we don't build SA on Itanium, PPC, ARM or zero. ++# check for thread_db.h too (musl does not have it). + ++ifneq ($(wildcard /usr/include/thread_db.h),) + ifneq ($(wildcard $(AGENT_DIR)),) + ifneq ($(filter-out ia64 arm ppc zero,$(SRCARCH)),) + BUILDLIBSAPROC = $(LIBSAPROC) ++endif + endif + endif + +--- openjdk.orig/hotspot/make/linux/makefiles/defs.make ++++ openjdk/hotspot/make/linux/makefiles/defs.make +@@ -144,10 +144,17 @@ + + # Serviceability Binaries + # No SA Support for PPC, IA64, ARM or zero +-ADD_SA_BINARIES/x86 = $(EXPORT_JRE_LIB_ARCH_DIR)/libsaproc.so \ +- $(EXPORT_LIB_DIR)/sa-jdi.jar +-ADD_SA_BINARIES/sparc = $(EXPORT_JRE_LIB_ARCH_DIR)/libsaproc.so \ +- $(EXPORT_LIB_DIR)/sa-jdi.jar ++# or if thread_db.h missing (musl) ++ ++ifneq ($(wildcard /usr/include/thread_db.h),) ++SA_BINARY_LIST = $(EXPORT_JRE_LIB_ARCH_DIR)/libsaproc.so \ ++ $(EXPORT_LIB_DIR)/sa-jdi.jar ++else ++SA_BINARY_LIST = ++endif ++ ++ADD_SA_BINARIES/x86 = $(SA_BINARY_LIST) ++ADD_SA_BINARIES/sparc = $(SA_BINARY_LIST) + ADD_SA_BINARIES/ppc = + ADD_SA_BINARIES/ia64 = + ADD_SA_BINARIES/arm = |