1 #
2 # Copyright (c) 2011, 2015, 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
55 $(SUPPORT_OUTPUTDIR)/native/java.base/libzip/inftrees$(OBJ_SUFFIX) \
56 $(SUPPORT_OUTPUTDIR)/native/java.base/libzip/inffast$(OBJ_SUFFIX)
57
58 endif
59
60 ifeq ($(OPENJDK_TARGET_OS), solaris)
61 UNPACKEXE_TOOLCHAIN := TOOLCHAIN_LINK_CXX
62 endif
63
64 UNPACK_MAPFILE_DIR := $(JDK_TOPDIR)/make/mapfiles/libunpack
65 UNPACK_MAPFILE_PLATFORM_FILE := \
66 $(UNPACK_MAPFILE_DIR)/mapfile-vers-unpack200-$(OPENJDK_TARGET_OS)-$(OPENJDK_TARGET_CPU_ARCH)
67
68 # The linker on older SuSE distros (e.g. on SLES 10) complains with:
69 # "Invalid version tag `SUNWprivate_1.1'. Only anonymous version tag is allowed in executable."
70 # if feeded with a version script which contains named tags.
71 ifeq ($(USING_BROKEN_SUSE_LD), yes)
72 UNPACK_MAPFILE := $(UNPACK_MAPFILE_DIR)/mapfile-vers-unpack200.anonymous
73 else ifneq ($(wildcard $(UNPACK_MAPFILE_PLATFORM_FILE)), )
74 UNPACK_MAPFILE := $(UNPACK_MAPFILE_PLATFORM_FILE)
75 else
76 UNPACK_MAPFILE := $(UNPACK_MAPFILE_DIR)/mapfile-vers-unpack200
77 endif
78
79 $(eval $(call SetupNativeCompilation,BUILD_UNPACKEXE, \
80 SRC := $(UNPACKEXE_SRC), \
81 TOOLCHAIN := $(UNPACKEXE_TOOLCHAIN), \
82 OPTIMIZATION := LOW, \
83 CFLAGS := $(UNPACKEXE_CFLAGS) $(CXXFLAGS_JDKEXE) -DFULL, \
84 CFLAGS_release := -DPRODUCT, \
85 CFLAGS_linux := -fPIC, \
86 CFLAGS_solaris := -KPIC, \
87 CFLAGS_macosx := -fPIC, \
88 DISABLED_WARNINGS_gcc := unused-result, \
89 MAPFILE := $(UNPACK_MAPFILE),\
90 LDFLAGS := $(UNPACKEXE_ZIPOBJS) \
91 $(LDFLAGS_JDKEXE) $(LDFLAGS_CXX_JDK) \
92 $(call SET_SHARED_LIBRARY_ORIGIN), \
93 LIBS := $(UNPACKEXE_LIBS) $(LIBCXX), \
94 LIBS_solaris := -lc, \
95 OBJECT_DIR := $(SUPPORT_OUTPUTDIR)/native/$(MODULE)/unpackexe, \
|
1 #
2 # Copyright (c) 2011, 2016, 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
55 $(SUPPORT_OUTPUTDIR)/native/java.base/libzip/inftrees$(OBJ_SUFFIX) \
56 $(SUPPORT_OUTPUTDIR)/native/java.base/libzip/inffast$(OBJ_SUFFIX)
57
58 endif
59
60 ifeq ($(OPENJDK_TARGET_OS), solaris)
61 UNPACKEXE_TOOLCHAIN := TOOLCHAIN_LINK_CXX
62 endif
63
64 UNPACK_MAPFILE_DIR := $(JDK_TOPDIR)/make/mapfiles/libunpack
65 UNPACK_MAPFILE_PLATFORM_FILE := \
66 $(UNPACK_MAPFILE_DIR)/mapfile-vers-unpack200-$(OPENJDK_TARGET_OS)-$(OPENJDK_TARGET_CPU_ARCH)
67
68 # The linker on older SuSE distros (e.g. on SLES 10) complains with:
69 # "Invalid version tag `SUNWprivate_1.1'. Only anonymous version tag is allowed in executable."
70 # if feeded with a version script which contains named tags.
71 ifeq ($(USING_BROKEN_SUSE_LD), yes)
72 UNPACK_MAPFILE := $(UNPACK_MAPFILE_DIR)/mapfile-vers-unpack200.anonymous
73 else ifneq ($(wildcard $(UNPACK_MAPFILE_PLATFORM_FILE)), )
74 UNPACK_MAPFILE := $(UNPACK_MAPFILE_PLATFORM_FILE)
75 else ifneq ($(OPENJDK_TARGET_OS), bsd)
76 UNPACK_MAPFILE := $(UNPACK_MAPFILE_DIR)/mapfile-vers-unpack200
77 endif
78
79 $(eval $(call SetupNativeCompilation,BUILD_UNPACKEXE, \
80 SRC := $(UNPACKEXE_SRC), \
81 TOOLCHAIN := $(UNPACKEXE_TOOLCHAIN), \
82 OPTIMIZATION := LOW, \
83 CFLAGS := $(UNPACKEXE_CFLAGS) $(CXXFLAGS_JDKEXE) -DFULL, \
84 CFLAGS_release := -DPRODUCT, \
85 CFLAGS_linux := -fPIC, \
86 CFLAGS_solaris := -KPIC, \
87 CFLAGS_macosx := -fPIC, \
88 DISABLED_WARNINGS_gcc := unused-result, \
89 MAPFILE := $(UNPACK_MAPFILE),\
90 LDFLAGS := $(UNPACKEXE_ZIPOBJS) \
91 $(LDFLAGS_JDKEXE) $(LDFLAGS_CXX_JDK) \
92 $(call SET_SHARED_LIBRARY_ORIGIN), \
93 LIBS := $(UNPACKEXE_LIBS) $(LIBCXX), \
94 LIBS_solaris := -lc, \
95 OBJECT_DIR := $(SUPPORT_OUTPUTDIR)/native/$(MODULE)/unpackexe, \
|