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