8141590: Cannot build Zero with devkit
authorerikj
Wed, 07 Dec 2016 16:08:23 +0100
changeset 42430 886368911f2b
parent 42429 2435ff181f94
child 42431 a91250ba2c70
child 42646 591ef3658bb0
8141590: Cannot build Zero with devkit Reviewed-by: ihse
hotspot/make/copy/Copy-java.base.gmk
--- a/hotspot/make/copy/Copy-java.base.gmk	Wed Dec 07 09:48:57 2016 +0100
+++ b/hotspot/make/copy/Copy-java.base.gmk	Wed Dec 07 16:08:23 2016 +0100
@@ -65,3 +65,17 @@
 #TARGETS += $(INCLUDE_DST_DIR)/$(JNI_MD_SUBDIR)/jni_md.h
 
 ################################################################################
+# Optionally copy libffi.so.? into the the image
+
+ifeq ($(ENABLE_LIBFFI_BUNDLING), true)
+  $(eval $(call SetupCopyFiles, COPY_LIBFFI, \
+      FILES := $(LIBFFI_LIB_FILE), \
+      DEST := $(call FindLibDirForModule, $(MODULE)), \
+      FLATTEN := true, \
+      MACRO := install-file-nolink, \
+  ))
+
+  TARGETS += $(COPY_LIBFFI)
+endif
+
+################################################################################