2012-04-10 15:22:03 +00:00
|
|
|
#
|
2018-03-14 10:23:16 +00:00
|
|
|
# Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved.
|
2012-04-10 15:22:03 +00:00
|
|
|
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
|
|
#
|
|
|
|
# This code is free software; you can redistribute it and/or modify it
|
|
|
|
# under the terms of the GNU General Public License version 2 only, as
|
|
|
|
# published by the Free Software Foundation. Oracle designates this
|
|
|
|
# particular file as subject to the "Classpath" exception as provided
|
|
|
|
# by Oracle in the LICENSE file that accompanied this code.
|
|
|
|
#
|
|
|
|
# This code is distributed in the hope that it will be useful, but WITHOUT
|
|
|
|
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
|
|
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
|
|
|
# version 2 for more details (a copy is included in the LICENSE file that
|
|
|
|
# accompanied this code).
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU General Public License version
|
|
|
|
# 2 along with this work; if not, write to the Free Software Foundation,
|
|
|
|
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
|
|
#
|
|
|
|
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
|
|
|
# or visit www.oracle.com if you need additional information or have any
|
|
|
|
# questions.
|
|
|
|
#
|
|
|
|
|
2018-03-15 00:20:47 +00:00
|
|
|
include JdkNativeCompilation.gmk
|
2012-04-10 15:22:03 +00:00
|
|
|
|
2015-12-11 13:02:41 +00:00
|
|
|
################################################################################
|
|
|
|
|
2017-09-12 17:03:56 +00:00
|
|
|
GLOBAL_VERSION_INFO_RESOURCE := $(TOPDIR)/src/java.base/windows/native/common/version.rc
|
2012-04-10 15:22:03 +00:00
|
|
|
|
2018-03-14 10:23:16 +00:00
|
|
|
# Absolute paths to lib files on windows for use in LIBS. Should figure out a more
|
2012-07-03 23:10:44 +00:00
|
|
|
# elegant solution to this.
|
2014-12-03 14:22:58 +00:00
|
|
|
WIN_JAVA_LIB := $(SUPPORT_OUTPUTDIR)/native/java.base/libjava/java.lib
|
2012-07-03 23:10:44 +00:00
|
|
|
|
2018-03-28 21:56:08 +00:00
|
|
|
# Tell the compiler not to export any functions unless declared so in
|
|
|
|
# the source code. On Windows, this is the default and cannot be changed.
|
|
|
|
# On Mac, we have always exported all symbols, probably due to oversight
|
|
|
|
# and/or misunderstanding. To emulate this, don't hide any symbols
|
|
|
|
# by default.
|
2018-12-04 08:08:03 +00:00
|
|
|
# On AIX/xlc we need at least xlc 13.1 for the symbol hiding (see JDK-8214063)
|
2018-03-28 21:56:08 +00:00
|
|
|
# Also provide an override for non-conformant libraries.
|
|
|
|
ifeq ($(TOOLCHAIN_TYPE), gcc)
|
|
|
|
CFLAGS_JDKLIB += -fvisibility=hidden
|
|
|
|
CXXFLAGS_JDKLIB += -fvisibility=hidden
|
|
|
|
LDFLAGS_JDKLIB += -Wl,--exclude-libs,ALL
|
|
|
|
EXPORT_ALL_SYMBOLS := -fvisibility=default
|
|
|
|
else ifeq ($(TOOLCHAIN_TYPE), clang)
|
2018-09-24 18:45:06 +00:00
|
|
|
CFLAGS_JDKLIB += -fvisibility=hidden
|
|
|
|
CXXFLAGS_JDKLIB += -fvisibility=hidden
|
|
|
|
EXPORT_ALL_SYMBOLS := -fvisibility=default
|
2018-03-28 21:56:08 +00:00
|
|
|
else ifeq ($(TOOLCHAIN_TYPE), solstudio)
|
|
|
|
CFLAGS_JDKLIB += -xldscope=hidden
|
|
|
|
CXXFLAGS_JDKLIB += -xldscope=hidden
|
|
|
|
EXPORT_ALL_SYMBOLS := -xldscope=global
|
2016-02-12 10:07:54 +00:00
|
|
|
endif
|
|
|
|
|
2014-12-03 14:22:58 +00:00
|
|
|
# Put the libraries here.
|
|
|
|
INSTALL_LIBRARIES_HERE := $(call FindLibDirForModule, $(MODULE))
|
|
|
|
|
2014-08-17 14:54:13 +00:00
|
|
|
################################################################################
|