diff -r edf8a95b46e5 -r 01b558efd286 make/lib/Lib-jdk.attach.gmk --- a/make/lib/Lib-jdk.attach.gmk Tue Feb 13 15:28:07 2018 +0100 +++ b/make/lib/Lib-jdk.attach.gmk Mon Jun 11 11:23:20 2018 +0200 @@ -34,26 +34,16 @@ LIBATTACH_CFLAGS := -DPSAPI_VERSION=1 endif -$(eval $(call SetupNativeCompilation,BUILD_LIBATTACH, \ - LIBRARY := attach, \ - OUTPUT_DIR := $(INSTALL_LIBRARIES_HERE), \ - SRC := $(call FindSrcDirsForLib, jdk.attach, attach), \ +$(eval $(call SetupJdkLibrary, BUILD_LIBATTACH, \ + NAME := attach, \ OPTIMIZATION := LOW, \ - CFLAGS := $(CFLAGS_JDKLIB) \ - -I$(SUPPORT_OUTPUTDIR)/headers/jdk.attach \ - $(LIBJAVA_HEADER_FLAGS) $(LIBATTACH_CFLAGS), \ + CFLAGS := $(CFLAGS_JDKLIB) $(LIBATTACH_CFLAGS), \ CFLAGS_windows := /Gy, \ - VERSIONINFO_RESOURCE := $(GLOBAL_VERSION_INFO_RESOURCE), \ - RC_FLAGS := $(RC_FLAGS) \ - -D "JDK_FNAME=attach.dll" \ - -D "JDK_INTERNAL_NAME=attach" \ - -D "JDK_FTYPE=0x2L", \ LDFLAGS := $(LDFLAGS_JDKLIB) \ $(call SET_SHARED_LIBRARY_ORIGIN), \ LIBS := $(JDKLIB_LIBS), \ LIBS_solaris := -ldoor, \ LIBS_windows := $(WIN_JAVA_LIB) advapi32.lib psapi.lib, \ - OBJECT_DIR := $(SUPPORT_OUTPUTDIR)/native/$(MODULE)/libattach, \ )) $(BUILD_LIBATTACH): $(call FindLib, java.base, java)