< prev index next >

make/modules/java.desktop/lib/Awt2dLibraries.gmk

Print this page
rev 60340 : 8250605: Default x86_32 builds fail after JDK-8249821
Reviewed-by: XXX


 544   # Turn off all warnings for sunFont.c. This is needed because the specific warning
 545   # about discarding 'const' qualifier cannot be turned off individually.
 546   BUILD_LIBFONTMANAGER_sunFont.c_CFLAGS := -w
 547 endif
 548 
 549 # LDFLAGS clarification:
 550 #   Filter relevant linker flags disallowing unresolved symbols as we cannot
 551 #   build-time decide to which library to link against (libawt_headless or
 552 #   libawt_xawt). See JDK-8196516 for details.
 553 $(eval $(call SetupJdkLibrary, BUILD_LIBFONTMANAGER, \
 554     NAME := fontmanager, \
 555     EXCLUDE_FILES := $(LIBFONTMANAGER_EXCLUDE_FILES) \
 556         AccelGlyphCache.c, \
 557     TOOLCHAIN := TOOLCHAIN_LINK_CXX, \
 558     CFLAGS := $(CFLAGS_JDKLIB) $(LIBFONTMANAGER_CFLAGS), \
 559     CXXFLAGS := $(CXXFLAGS_JDKLIB) $(LIBFONTMANAGER_CFLAGS), \
 560     OPTIMIZATION := $(LIBFONTMANAGER_OPTIMIZATION), \
 561     CFLAGS_windows = -DCC_NOEX, \
 562     EXTRA_HEADER_DIRS := $(LIBFONTMANAGER_EXTRA_HEADER_DIRS), \
 563     WARNINGS_AS_ERRORS_xlc := false, \
 564     DISABLED_WARNINGS_gcc := sign-compare unused-function, \
 565     DISABLED_WARNINGS_clang := sign-compare, \
 566     DISABLED_WARNINGS_microsoft := 4018 4146 4244 4996, \
 567     LDFLAGS := $(subst -Xlinker -z -Xlinker defs,, \
 568         $(subst -Wl$(COMMA)-z$(COMMA)defs,,$(LDFLAGS_JDKLIB))) $(LDFLAGS_CXX_JDK) \
 569         $(call SET_SHARED_LIBRARY_ORIGIN), \
 570     LDFLAGS_unix := -L$(INSTALL_LIBRARIES_HERE), \
 571     LDFLAGS_aix := -Wl$(COMMA)-berok, \
 572     LIBS := $(BUILD_LIBFONTMANAGER_FONTLIB), \
 573     LIBS_unix := -lawt -ljava -ljvm $(LIBM) $(LIBCXX), \
 574     LIBS_macosx := -lawt_lwawt, \
 575     LIBS_windows := $(WIN_JAVA_LIB) advapi32.lib user32.lib gdi32.lib \
 576         $(WIN_AWT_LIB), \
 577 ))
 578 
 579 $(BUILD_LIBFONTMANAGER): $(BUILD_LIBAWT) $(BUILD_LIBHARFBUZZ)
 580 
 581 ifeq ($(call isTargetOs, macosx), true)
 582   $(BUILD_LIBFONTMANAGER): $(call FindLib, $(MODULE), awt_lwawt)
 583 endif
 584 




 544   # Turn off all warnings for sunFont.c. This is needed because the specific warning
 545   # about discarding 'const' qualifier cannot be turned off individually.
 546   BUILD_LIBFONTMANAGER_sunFont.c_CFLAGS := -w
 547 endif
 548 
 549 # LDFLAGS clarification:
 550 #   Filter relevant linker flags disallowing unresolved symbols as we cannot
 551 #   build-time decide to which library to link against (libawt_headless or
 552 #   libawt_xawt). See JDK-8196516 for details.
 553 $(eval $(call SetupJdkLibrary, BUILD_LIBFONTMANAGER, \
 554     NAME := fontmanager, \
 555     EXCLUDE_FILES := $(LIBFONTMANAGER_EXCLUDE_FILES) \
 556         AccelGlyphCache.c, \
 557     TOOLCHAIN := TOOLCHAIN_LINK_CXX, \
 558     CFLAGS := $(CFLAGS_JDKLIB) $(LIBFONTMANAGER_CFLAGS), \
 559     CXXFLAGS := $(CXXFLAGS_JDKLIB) $(LIBFONTMANAGER_CFLAGS), \
 560     OPTIMIZATION := $(LIBFONTMANAGER_OPTIMIZATION), \
 561     CFLAGS_windows = -DCC_NOEX, \
 562     EXTRA_HEADER_DIRS := $(LIBFONTMANAGER_EXTRA_HEADER_DIRS), \
 563     WARNINGS_AS_ERRORS_xlc := false, \
 564     DISABLED_WARNINGS_gcc := sign-compare unused-function int-to-pointer-cast, \
 565     DISABLED_WARNINGS_clang := sign-compare, \
 566     DISABLED_WARNINGS_microsoft := 4018 4146 4244 4996, \
 567     LDFLAGS := $(subst -Xlinker -z -Xlinker defs,, \
 568         $(subst -Wl$(COMMA)-z$(COMMA)defs,,$(LDFLAGS_JDKLIB))) $(LDFLAGS_CXX_JDK) \
 569         $(call SET_SHARED_LIBRARY_ORIGIN), \
 570     LDFLAGS_unix := -L$(INSTALL_LIBRARIES_HERE), \
 571     LDFLAGS_aix := -Wl$(COMMA)-berok, \
 572     LIBS := $(BUILD_LIBFONTMANAGER_FONTLIB), \
 573     LIBS_unix := -lawt -ljava -ljvm $(LIBM) $(LIBCXX), \
 574     LIBS_macosx := -lawt_lwawt, \
 575     LIBS_windows := $(WIN_JAVA_LIB) advapi32.lib user32.lib gdi32.lib \
 576         $(WIN_AWT_LIB), \
 577 ))
 578 
 579 $(BUILD_LIBFONTMANAGER): $(BUILD_LIBAWT) $(BUILD_LIBHARFBUZZ)
 580 
 581 ifeq ($(call isTargetOs, macosx), true)
 582   $(BUILD_LIBFONTMANAGER): $(call FindLib, $(MODULE), awt_lwawt)
 583 endif
 584 


< prev index next >