8146425: After change 8142907 'EXCLUDE_FILE' is wrongly interpreted as pattern
Reviewed-by: erikj
--- a/jdk/make/lib/NioLibraries.gmk Tue Jan 05 10:09:48 2016 -0500
+++ b/jdk/make/lib/NioLibraries.gmk Tue Jan 05 18:53:27 2016 +0100
@@ -58,7 +58,10 @@
ifeq ($(OPENJDK_TARGET_OS), aix)
BUILD_LIBNIO_MAPFILE:=$(JDK_TOPDIR)/make/mapfiles/libnio/mapfile-$(OPENJDK_TARGET_OS)
BUILD_LIBNIO_EXFILES += \
- NativeThread.c
+ /NativeThread.c
+ # Notice: we really need the leading slash here because otherwise every
+ # FILE_NAME in EXCLUDE_FILES will actually match any file ending in FILE_NAME
+ # (e.g. 'NativeThread.c' will also exclude 'AixNativeThread.c').
endif
$(eval $(call SetupNativeCompilation,BUILD_LIBNIO, \