8146425: After change 8142907 'EXCLUDE_FILE' is wrongly interpreted as pattern
authorsimonis
Tue, 05 Jan 2016 18:53:27 +0100
changeset 34877 0583de363a12
parent 34876 a634e2ae08ae
child 34878 7d7e55ff253a
8146425: After change 8142907 'EXCLUDE_FILE' is wrongly interpreted as pattern Reviewed-by: erikj
jdk/make/lib/NioLibraries.gmk
--- 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, \