1 #
   2 # Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved.
   3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4 #
   5 # This code is free software; you can redistribute it and/or modify it
   6 # under the terms of the GNU General Public License version 2 only, as
   7 # published by the Free Software Foundation.  Oracle designates this
   8 # particular file as subject to the "Classpath" exception as provided
   9 # by Oracle in the LICENSE file that accompanied this code.
  10 #
  11 # This code is distributed in the hope that it will be useful, but WITHOUT
  12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14 # version 2 for more details (a copy is included in the LICENSE file that
  15 # accompanied this code).
  16 #
  17 # You should have received a copy of the GNU General Public License version
  18 # 2 along with this work; if not, write to the Free Software Foundation,
  19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20 #
  21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22 # or visit www.oracle.com if you need additional information or have any
  23 # questions.
  24 #
  25 
  26 WIN_VERIFY_LIB := $(SUPPORT_OUTPUTDIR)/native/$(MODULE)/libverify/verify.lib
  27 
  28 # Hook to include the corresponding custom file, if present.
  29 $(eval $(call IncludeCustomExtension, lib/CoreLibraries.gmk))
  30 
  31 
  32 ##########################################################################################
  33 # libfdlibm is statically linked with libjava below and not delivered into the
  34 # product on its own.
  35 
  36 BUILD_LIBFDLIBM_OPTIMIZATION := NONE
  37 
  38 ifeq ($(OPENJDK_TARGET_OS), solaris)
  39   BUILD_LIBFDLIBM_OPTIMIZATION := HIGH
  40 endif
  41 
  42 ifeq ($(OPENJDK_TARGET_OS), linux)
  43   ifeq ($(OPENJDK_TARGET_CPU), ppc64)
  44     BUILD_LIBFDLIBM_OPTIMIZATION := HIGH
  45   else ifeq ($(OPENJDK_TARGET_CPU), ppc64le)
  46     BUILD_LIBFDLIBM_OPTIMIZATION := HIGH
  47   else ifeq ($(OPENJDK_TARGET_CPU), s390x)
  48     BUILD_LIBFDLIBM_OPTIMIZATION := HIGH
  49   else ifeq ($(OPENJDK_TARGET_CPU), aarch64)
  50     BUILD_LIBFDLIBM_OPTIMIZATION := HIGH
  51   endif
  52 endif
  53 
  54 LIBFDLIBM_SRC := $(TOPDIR)/src/java.base/share/native/libfdlibm
  55 LIBFDLIBM_CFLAGS := -I$(LIBFDLIBM_SRC)
  56 
  57 ifneq ($(OPENJDK_TARGET_OS), macosx)
  58   $(eval $(call SetupNativeCompilation, BUILD_LIBFDLIBM, \
  59       NAME := fdlibm, \
  60       TYPE := STATIC_LIBRARY, \
  61       OUTPUT_DIR := $(SUPPORT_OUTPUTDIR)/native/$(MODULE), \
  62       SRC := $(LIBFDLIBM_SRC), \
  63       OPTIMIZATION := $(BUILD_LIBFDLIBM_OPTIMIZATION), \
  64       CFLAGS := $(CFLAGS_JDKLIB) $(LIBFDLIBM_CFLAGS), \
  65       CFLAGS_windows_debug := -DLOGGING, \
  66       CFLAGS_aix := -qfloat=nomaf, \
  67       CFLAGS_linux_ppc64 := -ffp-contract=off, \
  68       CFLAGS_linux_ppc64le := -ffp-contract=off, \
  69       CFLAGS_linux_s390x := -ffp-contract=off, \
  70       CFLAGS_linux_aarch64 := -ffp-contract=off, \
  71       DISABLED_WARNINGS_gcc := sign-compare misleading-indentation, \
  72       DISABLED_WARNINGS_microsoft := 4146 4244 4018, \
  73       ARFLAGS := $(ARFLAGS), \
  74       OBJECT_DIR := $(SUPPORT_OUTPUTDIR)/native/$(MODULE)/libfdlibm, \
  75   ))
  76 
  77 else
  78 
  79   # On macosx the old build does partial (incremental) linking of fdlibm instead of
  80   # a plain static library.
  81   $(eval $(call SetupNativeCompilation, BUILD_LIBFDLIBM_MAC, \
  82       NAME := fdlibm, \
  83       OUTPUT_DIR := $(SUPPORT_OUTPUTDIR)/native/$(MODULE)/libfdlibm, \
  84       SRC := $(LIBFDLIBM_SRC), \
  85       CFLAGS := $(CFLAGS_JDKLIB) $(LIBFDLIBM_CFLAGS), \
  86       LDFLAGS := -nostdlib $(ARFLAGS), \
  87       OBJECT_DIR := $(SUPPORT_OUTPUTDIR)/native/$(MODULE)/libfdlibm, \
  88   ))
  89 
  90   BUILD_LIBFDLIBM := $(SUPPORT_OUTPUTDIR)/native/$(MODULE)/$(LIBRARY_PREFIX)fdlibm$(STATIC_LIBRARY_SUFFIX)
  91   $(BUILD_LIBFDLIBM): $(BUILD_LIBFDLIBM_MAC)
  92         $(call install-file)
  93 
  94 endif
  95 
  96 ##########################################################################################
  97 
  98 ifeq ($(OPENJDK_TARGET_OS), solaris)
  99   ifneq ($(OPENJDK_TARGET_CPU), x86_64)
 100     BUILD_LIBVERIFY_REORDER := $(TOPDIR)/make/mapfiles/libverify/reorder-$(OPENJDK_TARGET_CPU)
 101   endif
 102 endif
 103 
 104 LIBVERIFY_OPTIMIZATION := HIGH
 105 ifneq ($(findstring $(OPENJDK_TARGET_OS), solaris linux), )
 106   ifeq ($(COMPILE_WITH_DEBUG_SYMBOLS), true)
 107     LIBVERIFY_OPTIMIZATION := LOW
 108   endif
 109 endif
 110 
 111 $(eval $(call SetupJdkLibrary, BUILD_LIBVERIFY, \
 112     NAME := verify, \
 113     SRC := $(TOPDIR)/src/java.base/share/native/libverify, \
 114     OPTIMIZATION := $(LIBVERIFY_OPTIMIZATION), \
 115     CFLAGS := $(CFLAGS_JDKLIB), \
 116     DISABLED_WARNINGS_gcc := implicit-fallthrough, \
 117     DISABLED_WARNINGS_microsoft := 4244 4267, \
 118     MAPFILE := $(TOPDIR)/make/mapfiles/libverify/mapfile-vers, \
 119     LDFLAGS := $(LDFLAGS_JDKLIB) \
 120         $(call SET_SHARED_LIBRARY_ORIGIN), \
 121     LIBS_unix := -ljvm, \
 122     LIBS_windows := jvm.lib, \
 123     REORDER := $(BUILD_LIBVERIFY_REORDER), \
 124 ))
 125 
 126 TARGETS += $(BUILD_LIBVERIFY)
 127 
 128 ##########################################################################################
 129 
 130 # Allow a custom makefile to add extra src dirs
 131 LIBJAVA_SRC_DIRS += $(call FindSrcDirsForLib, java.base, java)
 132 
 133 LIBJAVA_CFLAGS := $(addprefix -I, $(LIBJAVA_SRC_DIRS)) \
 134     -I$(TOPDIR)/src/java.base/share/native/libfdlibm \
 135     -I$(SUPPORT_OUTPUTDIR)/headers/java.base \
 136     -DARCHPROPNAME='"$(OPENJDK_TARGET_CPU_OSARCH)"'
 137 
 138 # Make it possible to override this variable
 139 LIBJAVA_MAPFILE ?= $(TOPDIR)/make/mapfiles/libjava/mapfile-vers
 140 
 141 ifeq ($(OPENJDK_TARGET_OS), macosx)
 142   BUILD_LIBJAVA_java_props_md.c_CFLAGS := -x objective-c
 143   BUILD_LIBJAVA_java_props_macosx.c_CFLAGS := -x objective-c
 144 endif
 145 
 146 ifeq ($(OPENJDK_TARGET_OS), solaris)
 147   ifneq ($(OPENJDK_TARGET_CPU), x86_64)
 148     LIBJAVA_REORDER := $(TOPDIR)/make/mapfiles/libjava/reorder-$(OPENJDK_TARGET_CPU)
 149   endif
 150 endif
 151 
 152 $(eval $(call SetupJdkLibrary, BUILD_LIBJAVA, \
 153     NAME := java, \
 154     SRC := $(LIBJAVA_SRC_DIRS), \
 155     OPTIMIZATION := HIGH, \
 156     CFLAGS := $(CFLAGS_JDKLIB) \
 157         $(LIBJAVA_CFLAGS), \
 158     System.c_CFLAGS := $(VERSION_CFLAGS), \
 159     jdk_util.c_CFLAGS := $(VERSION_CFLAGS), \
 160     WARNINGS_AS_ERRORS_xlc := false, \
 161     DISABLED_WARNINGS_gcc := unused-result, \
 162     DISABLED_WARNINGS_solstudio := E_STATEMENT_NOT_REACHED, \
 163     MAPFILE := $(LIBJAVA_MAPFILE), \
 164     LDFLAGS := $(LDFLAGS_JDKLIB) \
 165         $(call SET_SHARED_LIBRARY_ORIGIN), \
 166     LDFLAGS_macosx := -L$(SUPPORT_OUTPUTDIR)/native/$(MODULE)/, \
 167     LDFLAGS_windows := -export:winFileHandleOpen -export:handleLseek \
 168         -export:getLastErrorString \
 169         -export:getErrorString -delayload:shell32.dll, \
 170     LIBS_unix := -ljvm -lverify, \
 171     LIBS_linux := $(LIBDL) $(BUILD_LIBFDLIBM), \
 172     LIBS_solaris := -lsocket -lnsl -lscf $(LIBDL) $(BUILD_LIBFDLIBM), \
 173     LIBS_aix := $(LIBDL) $(BUILD_LIBFDLIBM) $(LIBM),\
 174     LIBS_macosx := -lfdlibm \
 175         -framework CoreFoundation \
 176         -framework Foundation \
 177         -framework Security -framework SystemConfiguration, \
 178     LIBS_windows := jvm.lib $(BUILD_LIBFDLIBM) $(WIN_VERIFY_LIB) \
 179         shell32.lib delayimp.lib \
 180         advapi32.lib version.lib, \
 181     REORDER := $(LIBJAVA_REORDER), \
 182 ))
 183 
 184 TARGETS += $(BUILD_LIBJAVA)
 185 
 186 $(BUILD_LIBJAVA): $(BUILD_LIBVERIFY)
 187 
 188 $(BUILD_LIBJAVA): $(BUILD_LIBFDLIBM)
 189 
 190 ##########################################################################################
 191 
 192 BUILD_LIBZIP_EXCLUDES :=
 193 ifeq ($(USE_EXTERNAL_LIBZ), true)
 194   LIBZIP_EXCLUDES += zlib
 195 endif
 196 
 197 BUILD_LIBZIP_REORDER :=
 198 ifeq ($(OPENJDK_TARGET_OS), solaris)
 199   ifneq ($(OPENJDK_TARGET_CPU), x86_64)
 200     BUILD_LIBZIP_REORDER := $(TOPDIR)/make/mapfiles/libzip/reorder-$(OPENJDK_TARGET_CPU)
 201   endif
 202 endif
 203 
 204 ifeq ($(LIBZIP_CAN_USE_MMAP), true)
 205   BUILD_LIBZIP_MMAP := -DUSE_MMAP
 206 endif
 207 
 208 $(eval $(call SetupJdkLibrary, BUILD_LIBZIP, \
 209     NAME := zip, \
 210     OPTIMIZATION := LOW, \
 211     SRC := $(TOPDIR)/src/java.base/share/native/libzip, \
 212     EXCLUDES := $(LIBZIP_EXCLUDES), \
 213     CFLAGS := $(CFLAGS_JDKLIB) \
 214         $(LIBZ_CFLAGS) \
 215         -I$(TOPDIR)/src/java.base/share/native/libjava \
 216         -I$(TOPDIR)/src/java.base/$(OPENJDK_TARGET_OS_TYPE)/native/libjava \
 217         -I$(SUPPORT_OUTPUTDIR)/headers/java.base, \
 218     CFLAGS_unix := $(BUILD_LIBZIP_MMAP) -UDEBUG, \
 219     DISABLED_WARNINGS_gcc := implicit-fallthrough, \
 220     MAPFILE := $(TOPDIR)/make/mapfiles/libzip/mapfile-vers, \
 221     REORDER := $(BUILD_LIBZIP_REORDER), \
 222     LDFLAGS := $(LDFLAGS_JDKLIB) \
 223         $(call SET_SHARED_LIBRARY_ORIGIN), \
 224     LDFLAGS_windows := -export:ZIP_Open -export:ZIP_Close -export:ZIP_FindEntry \
 225         -export:ZIP_ReadEntry -export:ZIP_GetNextEntry \
 226         -export:ZIP_InflateFully -export:ZIP_CRC32 -export:ZIP_FreeEntry, \
 227     LIBS_unix := -ljvm -ljava $(LIBZ_LIBS), \
 228     LIBS_windows := jvm.lib $(WIN_JAVA_LIB), \
 229 ))
 230 
 231 $(BUILD_LIBZIP): $(BUILD_LIBJAVA)
 232 
 233 TARGETS += $(BUILD_LIBZIP)
 234 
 235 ##########################################################################################
 236 
 237 JIMAGELIB_CPPFLAGS := \
 238     -I$(TOPDIR)/src/java.base/share/native/libjava \
 239     -I$(TOPDIR)/src/java.base/$(OPENJDK_TARGET_OS_TYPE)/native/libjava \
 240     -I$(TOPDIR)/src/java.base/share/native/libjimage \
 241     -I$(SUPPORT_OUTPUTDIR)/headers/java.base \
 242     #
 243 
 244 $(eval $(call SetupJdkLibrary, BUILD_LIBJIMAGE, \
 245     NAME := jimage, \
 246     TOOLCHAIN := TOOLCHAIN_LINK_CXX, \
 247     OPTIMIZATION := LOW, \
 248     SRC := $(TOPDIR)/src/java.base/share/native/libjimage \
 249         $(TOPDIR)/src/java.base/$(OPENJDK_TARGET_OS_TYPE)/native/libjimage, \
 250     EXCLUDES := $(LIBJIMAGE_EXCLUDES), \
 251     CFLAGS := $(CFLAGS_JDKLIB) $(JIMAGELIB_CPPFLAGS), \
 252     CXXFLAGS := $(CXXFLAGS_JDKLIB) $(JIMAGELIB_CPPFLAGS), \
 253     DISABLED_WARNINGS_gcc := implicit-fallthrough, \
 254     CFLAGS_unix := -UDEBUG, \
 255     MAPFILE := $(TOPDIR)/make/mapfiles/libjimage/mapfile-vers, \
 256     LDFLAGS := $(LDFLAGS_JDKLIB) $(LDFLAGS_CXX_JDK) \
 257         $(call SET_SHARED_LIBRARY_ORIGIN), \
 258     LDFLAGS_windows := -export:JIMAGE_Open -export:JIMAGE_Close \
 259         -export:JIMAGE_PackageToModule \
 260         -export:JIMAGE_FindResource -export:JIMAGE_GetResource \
 261         -export:JIMAGE_ResourceIterator -export:JIMAGE_ResourcePath, \
 262     LIBS_unix := -ljvm -ldl $(LIBCXX), \
 263     LIBS_macosx := -lc++, \
 264     LIBS_windows := jvm.lib, \
 265 ))
 266 
 267 $(BUILD_LIBJIMAGE): $(BUILD_LIBJAVA)
 268 
 269 TARGETS += $(BUILD_LIBJIMAGE)
 270 
 271 ##########################################################################################
 272 
 273 LIBJLI_SRC_DIRS := $(call FindSrcDirsForLib, java.base, jli)
 274 
 275 LIBJLI_CFLAGS := $(CFLAGS_JDKLIB)
 276 
 277 ifeq ($(call check-jvm-variant, zero), true)
 278   ERGO_FAMILY := zero
 279 else
 280   ifeq ($(OPENJDK_TARGET_CPU_ARCH), x86)
 281     ERGO_FAMILY := i586
 282   else
 283     ERGO_FAMILY := $(OPENJDK_TARGET_CPU_ARCH)
 284   endif
 285 endif
 286 LIBJLI_ALL_ERGO := $(wildcard $(addsuffix /ergo_*.c, $(LIBJLI_SRC_DIRS)))
 287 LIBJLI_EXCLUDE_ERGO := $(filter-out %/ergo_$(ERGO_FAMILY).c, $(LIBJLI_ALL_ERGO))
 288 # If all specialized ergo files are excluded, use generic ergo
 289 ifeq ($(LIBJLI_ALL_ERGO), $(LIBJLI_EXCLUDE_ERGO))
 290   LIBJLI_CFLAGS += -DUSE_GENERIC_ERGO
 291 endif
 292 LIBJLI_EXCLUDE_FILES += $(notdir $(LIBJLI_EXCLUDE_ERGO))
 293 
 294 ifeq ($(OPENJDK_TARGET_OS), macosx)
 295   LIBJLI_EXCLUDE_FILES += java_md_solinux.c ergo.c ergo_i586.c
 296 
 297   BUILD_LIBJLI_java_md_macosx.c_CFLAGS := -x objective-c
 298   BUILD_LIBJLI_STATIC_java_md_macosx.c_CFLAGS := -x objective-c
 299 
 300   LIBJLI_CFLAGS += -DPACKAGE_PATH=\"$(PACKAGE_PATH)\"
 301 endif
 302 
 303 ifeq ($(OPENJDK_TARGET_OS), windows)
 304   # Staticically link with c runtime on windows.
 305   LIBJLI_CFLAGS := $(filter-out -MD, $(LIBJLI_CFLAGS))
 306   LIBJLI_OUTPUT_DIR := $(INSTALL_LIBRARIES_HERE)
 307   # Supply the name of the C runtime lib.
 308   LIBJLI_CFLAGS += -DMSVCR_DLL_NAME='"$(notdir $(MSVCR_DLL))"'
 309   ifneq ($(MSVCP_DLL), )
 310     LIBJLI_CFLAGS += -DMSVCP_DLL_NAME='"$(notdir $(MSVCP_DLL))"'
 311   endif
 312 else
 313   LIBJLI_OUTPUT_DIR := $(INSTALL_LIBRARIES_HERE)/jli
 314 endif
 315 
 316 LIBJLI_CFLAGS += $(addprefix -I, $(LIBJLI_SRC_DIRS))
 317 
 318 LIBJLI_CFLAGS += $(LIBZ_CFLAGS)
 319 
 320 ifneq ($(USE_EXTERNAL_LIBZ), true)
 321   LIBJLI_EXTRA_FILES += \
 322       $(addprefix $(TOPDIR)/src/java.base/share/native/libzip/zlib/, \
 323           inflate.c \
 324           inftrees.c \
 325           inffast.c \
 326           zadler32.c \
 327           zcrc32.c \
 328           zutil.c \
 329       )
 330 endif
 331 
 332 $(eval $(call SetupJdkLibrary, BUILD_LIBJLI, \
 333     NAME := jli, \
 334     OUTPUT_DIR := $(LIBJLI_OUTPUT_DIR), \
 335     SRC := $(LIBJLI_SRC_DIRS), \
 336     EXCLUDE_FILES := $(LIBJLI_EXCLUDE_FILES), \
 337     EXTRA_FILES := $(LIBJLI_EXTRA_FILES), \
 338     OPTIMIZATION := HIGH, \
 339     CFLAGS := $(LIBJLI_CFLAGS), \
 340     DISABLED_WARNINGS_gcc := maybe-uninitialized, \
 341     DISABLED_WARNINGS_solstudio := \
 342         E_ASM_DISABLES_OPTIMIZATION \
 343         E_STATEMENT_NOT_REACHED, \
 344     MAPFILE := $(TOPDIR)/make/mapfiles/libjli/mapfile-vers, \
 345     LDFLAGS := $(LDFLAGS_JDKLIB) \
 346         $(call SET_SHARED_LIBRARY_ORIGIN), \
 347     LDFLAGS_linux := $(call SET_SHARED_LIBRARY_ORIGIN,/..), \
 348     LDFLAGS_solaris := $(call SET_SHARED_LIBRARY_ORIGIN,/..), \
 349     LDFLAGS_windows := \
 350         -export:JLI_Launch \
 351         -export:JLI_ManifestIterate \
 352         -export:JLI_SetTraceLauncher \
 353         -export:JLI_ReportErrorMessage \
 354         -export:JLI_ReportErrorMessageSys \
 355         -export:JLI_ReportMessage \
 356         -export:JLI_ReportExceptionDescription \
 357         -export:JLI_MemAlloc \
 358         -export:JLI_CmdToArgs \
 359         -export:JLI_GetStdArgc \
 360         -export:JLI_GetStdArgs \
 361         -export:JLI_List_new \
 362         -export:JLI_List_add \
 363         -export:JLI_StringDup \
 364         -export:JLI_MemFree \
 365         -export:JLI_InitArgProcessing \
 366         -export:JLI_PreprocessArg \
 367         -export:JLI_AddArgsFromEnvVar \
 368         -export:JLI_GetAppArgIndex, \
 369     LIBS_unix := $(LIBZ_LIBS), \
 370     LIBS_linux := $(LIBDL) -lpthread, \
 371     LIBS_solaris := $(LIBDL), \
 372     LIBS_aix := $(LIBDL),\
 373     LIBS_macosx := -framework Cocoa -framework Security -framework ApplicationServices, \
 374     LIBS_windows := advapi32.lib comctl32.lib user32.lib, \
 375 ))
 376 
 377 TARGETS += $(BUILD_LIBJLI)
 378 
 379 # On windows, the static library has the same suffix as the import library created by
 380 # with the shared library, so the static library is given a different name. No harm
 381 # in doing it for all platform to reduce complexity.
 382 ifeq ($(OPENJDK_TARGET_OS), windows)
 383   $(eval $(call SetupNativeCompilation, BUILD_LIBJLI_STATIC, \
 384       NAME := jli_static, \
 385       TYPE := STATIC_LIBRARY, \
 386       OUTPUT_DIR := $(SUPPORT_OUTPUTDIR)/native/$(MODULE), \
 387       SRC := $(LIBJLI_SRC_DIRS), \
 388       EXCLUDE_FILES := $(LIBJLI_EXCLUDE_FILES), \
 389       EXTRA_FILES := $(LIBJLI_EXTRA_FILES), \
 390       OPTIMIZATION := HIGH, \
 391       CFLAGS := $(STATIC_LIBRARY_FLAGS) $(LIBJLI_CFLAGS), \
 392       ARFLAGS := $(ARFLAGS), \
 393       OBJECT_DIR := $(SUPPORT_OUTPUTDIR)/native/$(MODULE)/libjli_static, \
 394   ))
 395 
 396   TARGETS += $(BUILD_LIBJLI_STATIC)
 397 
 398 else ifeq ($(OPENJDK_TARGET_OS), macosx)
 399   #
 400   # On macosx they do partial (incremental) linking of libjli_static.a
 401   # code it here...rather than add support to NativeCompilation
 402   # as this is first time I see it
 403   $(eval $(call SetupNativeCompilation, BUILD_LIBJLI_STATIC, \
 404       NAME := jli_static, \
 405       OUTPUT_DIR := $(SUPPORT_OUTPUTDIR)/native/$(MODULE), \
 406       SRC := $(LIBJLI_SRC_DIRS), \
 407       EXCLUDE_FILES := $(LIBJLI_EXCLUDE_FILES), \
 408       EXTRA_FILES := $(LIBJLI_EXTRA_FILES), \
 409       OPTIMIZATION := HIGH, \
 410       CFLAGS := $(CFLAGS_JDKLIB) $(LIBJLI_CFLAGS), \
 411       LDFLAGS := -nostdlib $(ARFLAGS), \
 412       OBJECT_DIR := $(SUPPORT_OUTPUTDIR)/native/$(MODULE)/libjli_static, \
 413   ))
 414 
 415   ifeq ($(STATIC_BUILD), true)
 416     TARGETS += $(BUILD_LIBJLI_STATIC)
 417   else
 418     $(SUPPORT_OUTPUTDIR)/native/$(MODULE)/libjli_static.a: $(BUILD_LIBJLI_STATIC)
 419         $(call install-file)
 420 
 421     TARGETS += $(SUPPORT_OUTPUTDIR)/native/$(MODULE)/libjli_static.a
 422   endif
 423 
 424 else ifeq ($(OPENJDK_TARGET_OS), aix)
 425   # AIX also requires a static libjli because the compiler doesn't support '-rpath'
 426   $(eval $(call SetupNativeCompilation, BUILD_LIBJLI_STATIC, \
 427       NAME := jli_static, \
 428       TYPE := STATIC_LIBRARY, \
 429       OUTPUT_DIR := $(SUPPORT_OUTPUTDIR)/native/$(MODULE), \
 430       SRC := $(LIBJLI_SRC_DIRS), \
 431       EXCLUDE_FILES := $(LIBJLI_EXCLUDE_FILES), \
 432       EXTRA_FILES := $(LIBJLI_EXTRA_FILES), \
 433       OPTIMIZATION := HIGH, \
 434       CFLAGS := $(STATIC_LIBRARY_FLAGS) $(LIBJLI_CFLAGS), \
 435       ARFLAGS := $(ARFLAGS), \
 436       OBJECT_DIR := $(SUPPORT_OUTPUTDIR)/native/$(MODULE)/libjli_static))
 437 
 438   TARGETS += $(BUILD_LIBJLI_STATIC)
 439 
 440 endif
--- EOF ---