8201524: [AIX] Don't link libfontmanager against libawt_headless
authorsimonis
Mon, 16 Apr 2018 16:43:26 +0200
changeset 49991 033f3118dc67
parent 49990 6cd19862c742
child 49992 6c572aff3648
8201524: [AIX] Don't link libfontmanager against libawt_headless Reviewed-by: erikj, clanger, prr
make/lib/Awt2dLibraries.gmk
--- a/make/lib/Awt2dLibraries.gmk	Mon Apr 16 15:22:56 2018 +0530
+++ b/make/lib/Awt2dLibraries.gmk	Mon Apr 16 16:43:26 2018 +0200
@@ -652,9 +652,9 @@
         $(subst -Wl$(COMMA)-z$(COMMA)defs,,$(LDFLAGS_JDKLIB))) $(LDFLAGS_CXX_JDK) \
         $(call SET_SHARED_LIBRARY_ORIGIN), \
     LDFLAGS_unix := -L$(INSTALL_LIBRARIES_HERE), \
+    LDFLAGS_aix := -Wl$(COMMA)-berok, \
     LIBS := $(BUILD_LIBFONTMANAGER_FONTLIB), \
     LIBS_unix := -lawt -ljava -ljvm $(LIBM) $(LIBCXX), \
-    LIBS_aix := -lawt_headless, \
     LIBS_macosx := -lawt_lwawt -framework CoreText -framework CoreFoundation \
         -framework CoreGraphics, \
     LIBS_windows := $(WIN_JAVA_LIB) advapi32.lib user32.lib gdi32.lib \
@@ -663,10 +663,6 @@
 
 $(BUILD_LIBFONTMANAGER): $(BUILD_LIBAWT)
 
-ifneq (, $(findstring $(OPENJDK_TARGET_OS), solaris aix))
-  $(BUILD_LIBFONTMANAGER): $(BUILD_LIBAWT_HEADLESS)
-endif
-
 ifeq ($(OPENJDK_TARGET_OS), macosx)
   $(BUILD_LIBFONTMANAGER): $(call FindLib, java.desktop, awt_lwawt)
 endif