# HG changeset patch # User sgehwolf # Date 1516981508 -3600 # Node ID 2f4fe7776a539972725e907f7bf0e713bf38f92b # Parent 2d03ebb72df2211b48d7754490a3d298776db7ac 8196218: [linux] libfontmanager should be linked against headless awt library Summary: Also remove linker flags filtering (technical dept). Reviewed-by: prr, erikj diff -r 2d03ebb72df2 -r 2f4fe7776a53 make/lib/Awt2dLibraries.gmk --- a/make/lib/Awt2dLibraries.gmk Tue Jan 30 09:03:47 2018 -0800 +++ b/make/lib/Awt2dLibraries.gmk Fri Jan 26 16:45:08 2018 +0100 @@ -683,13 +683,13 @@ hidevf w_novirtualdescr arrowrtn2, \ DISABLED_WARNINGS_microsoft := 4267 4244 4018 4090 4996 4146 4334 4819 4101, \ MAPFILE := $(BUILD_LIBFONTMANAGER_MAPFILE), \ - LDFLAGS := $(subst -Wl$(COMMA)-z$(COMMA)defs,,$(LDFLAGS_JDKLIB)) $(LDFLAGS_CXX_JDK) \ + LDFLAGS := $(LDFLAGS_JDKLIB) $(LDFLAGS_CXX_JDK) \ $(call SET_SHARED_LIBRARY_ORIGIN), \ LDFLAGS_unix := -L$(INSTALL_LIBRARIES_HERE), \ LDFLAGS_macosx := -undefined dynamic_lookup, \ LIBS := $(BUILD_LIBFONTMANAGER_FONTLIB), \ LIBS_unix := -lawt -ljava -ljvm $(LIBM) $(LIBCXX), \ - LIBS_linux := -lc, \ + LIBS_linux := -lawt_headless -lc, \ LIBS_solaris := -lawt_headless -lc, \ LIBS_aix := -lawt_headless,\ LIBS_windows := $(WIN_JAVA_LIB) advapi32.lib user32.lib gdi32.lib \ @@ -719,7 +719,7 @@ $(BUILD_LIBFONTMANAGER): $(BUILD_LIBAWT) -ifneq (, $(findstring $(OPENJDK_TARGET_OS), solaris aix)) +ifneq (, $(findstring $(OPENJDK_TARGET_OS), solaris aix linux)) $(BUILD_LIBFONTMANAGER): $(BUILD_LIBAWT_HEADLESS) endif