make/lib/CoreLibraries.gmk

Print this page
rev 12497 : 8027634: Support @argfiles for java command-line tool
Reviewed-by: ksrini, mchung


 313         $(call SET_SHARED_LIBRARY_ORIGIN), \
 314     LDFLAGS_linux := $(call SET_SHARED_LIBRARY_ORIGIN,/..), \
 315     LDFLAGS_solaris := $(call SET_SHARED_LIBRARY_ORIGIN,/..), \
 316     LDFLAGS_macosx := -framework Cocoa -framework Security -framework ApplicationServices, \
 317     LDFLAGS_SUFFIX_solaris := $(LIBZ) $(LIBDL) -lc, \
 318     LDFLAGS_SUFFIX_linux := $(LIBZ) $(LIBDL) -lc -lpthread, \
 319     LDFLAGS_SUFFIX_aix := $(LIBZ) $(LIBDL),\
 320     LDFLAGS_SUFFIX_macosx := $(LIBZ), \
 321     LDFLAGS_SUFFIX_windows := \
 322         -export:JLI_Launch \
 323         -export:JLI_ManifestIterate \
 324         -export:JLI_SetTraceLauncher \
 325         -export:JLI_ReportErrorMessage \
 326         -export:JLI_ReportErrorMessageSys \
 327         -export:JLI_ReportMessage \
 328         -export:JLI_ReportExceptionDescription \
 329         -export:JLI_MemAlloc \
 330         -export:JLI_CmdToArgs \
 331         -export:JLI_GetStdArgc \
 332         -export:JLI_GetStdArgs \







 333         advapi32.lib \
 334         comctl32.lib \
 335         user32.lib, \
 336     VERSIONINFO_RESOURCE := $(GLOBAL_VERSION_INFO_RESOURCE), \
 337     RC_FLAGS := $(RC_FLAGS) \
 338         -D "JDK_FNAME=jli.dll" \
 339         -D "JDK_INTERNAL_NAME=jli" \
 340         -D "JDK_FTYPE=0x2L", \
 341     OBJECT_DIR := $(SUPPORT_OUTPUTDIR)/native/$(MODULE)/libjli, \
 342     DEBUG_SYMBOLS := $(DEBUG_ALL_BINARIES)))
 343 
 344 TARGETS += $(BUILD_LIBJLI)
 345 
 346 # On windows, the static library has the same suffix as the import library created by
 347 # with the shared library, so the static library is given a different name. No harm
 348 # in doing it for all platform to reduce complexity.
 349 ifeq ($(OPENJDK_TARGET_OS), windows)
 350   $(eval $(call SetupNativeCompilation,BUILD_LIBJLI_STATIC, \
 351       STATIC_LIBRARY := jli_static, \
 352       OUTPUT_DIR := $(SUPPORT_OUTPUTDIR)/native/$(MODULE), \




 313         $(call SET_SHARED_LIBRARY_ORIGIN), \
 314     LDFLAGS_linux := $(call SET_SHARED_LIBRARY_ORIGIN,/..), \
 315     LDFLAGS_solaris := $(call SET_SHARED_LIBRARY_ORIGIN,/..), \
 316     LDFLAGS_macosx := -framework Cocoa -framework Security -framework ApplicationServices, \
 317     LDFLAGS_SUFFIX_solaris := $(LIBZ) $(LIBDL) -lc, \
 318     LDFLAGS_SUFFIX_linux := $(LIBZ) $(LIBDL) -lc -lpthread, \
 319     LDFLAGS_SUFFIX_aix := $(LIBZ) $(LIBDL),\
 320     LDFLAGS_SUFFIX_macosx := $(LIBZ), \
 321     LDFLAGS_SUFFIX_windows := \
 322         -export:JLI_Launch \
 323         -export:JLI_ManifestIterate \
 324         -export:JLI_SetTraceLauncher \
 325         -export:JLI_ReportErrorMessage \
 326         -export:JLI_ReportErrorMessageSys \
 327         -export:JLI_ReportMessage \
 328         -export:JLI_ReportExceptionDescription \
 329         -export:JLI_MemAlloc \
 330         -export:JLI_CmdToArgs \
 331         -export:JLI_GetStdArgc \
 332         -export:JLI_GetStdArgs \
 333         -export:JLI_List_new \
 334         -export:JLI_List_add \
 335         -export:JLI_StringDup \
 336         -export:JLI_MemFree \
 337         -export:JLI_InitArgProcessing \
 338         -export:JLI_PreprocessArg \
 339         -export:JLI_GetAppArgIndex \
 340         advapi32.lib \
 341         comctl32.lib \
 342         user32.lib, \
 343     VERSIONINFO_RESOURCE := $(GLOBAL_VERSION_INFO_RESOURCE), \
 344     RC_FLAGS := $(RC_FLAGS) \
 345         -D "JDK_FNAME=jli.dll" \
 346         -D "JDK_INTERNAL_NAME=jli" \
 347         -D "JDK_FTYPE=0x2L", \
 348     OBJECT_DIR := $(SUPPORT_OUTPUTDIR)/native/$(MODULE)/libjli, \
 349     DEBUG_SYMBOLS := $(DEBUG_ALL_BINARIES)))
 350 
 351 TARGETS += $(BUILD_LIBJLI)
 352 
 353 # On windows, the static library has the same suffix as the import library created by
 354 # with the shared library, so the static library is given a different name. No harm
 355 # in doing it for all platform to reduce complexity.
 356 ifeq ($(OPENJDK_TARGET_OS), windows)
 357   $(eval $(call SetupNativeCompilation,BUILD_LIBJLI_STATIC, \
 358       STATIC_LIBRARY := jli_static, \
 359       OUTPUT_DIR := $(SUPPORT_OUTPUTDIR)/native/$(MODULE), \