1 # |
1 # |
2 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved. |
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. |
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 # |
4 # |
5 # This code is free software; you can redistribute it and/or modify it |
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 |
6 # under the terms of the GNU General Public License version 2 only, as |
7 # published by the Free Software Foundation. Oracle designates this |
7 # published by the Free Software Foundation. Oracle designates this |
56 $(SUPPORT_OUTPUTDIR)/native/java.base/libzip/inftrees$(OBJ_SUFFIX) \ |
56 $(SUPPORT_OUTPUTDIR)/native/java.base/libzip/inftrees$(OBJ_SUFFIX) \ |
57 $(SUPPORT_OUTPUTDIR)/native/java.base/libzip/inffast$(OBJ_SUFFIX) |
57 $(SUPPORT_OUTPUTDIR)/native/java.base/libzip/inffast$(OBJ_SUFFIX) |
58 |
58 |
59 endif |
59 endif |
60 |
60 |
61 UNPACK_MAPFILE_DIR := $(TOPDIR)/make/mapfiles/libunpack |
|
62 UNPACK_MAPFILE_PLATFORM_FILE := \ |
|
63 $(UNPACK_MAPFILE_DIR)/mapfile-vers-unpack200-$(OPENJDK_TARGET_OS)-$(OPENJDK_TARGET_CPU_ARCH) |
|
64 |
|
65 # The linker on older SuSE distros (e.g. on SLES 10) complains with: |
|
66 # "Invalid version tag `SUNWprivate_1.1'. Only anonymous version tag is allowed in executable." |
|
67 # if feeded with a version script which contains named tags. |
|
68 ifeq ($(USING_BROKEN_SUSE_LD), yes) |
|
69 UNPACK_MAPFILE := $(UNPACK_MAPFILE_DIR)/mapfile-vers-unpack200.anonymous |
|
70 else ifneq ($(wildcard $(UNPACK_MAPFILE_PLATFORM_FILE)), ) |
|
71 UNPACK_MAPFILE := $(UNPACK_MAPFILE_PLATFORM_FILE) |
|
72 else |
|
73 UNPACK_MAPFILE := $(UNPACK_MAPFILE_DIR)/mapfile-vers-unpack200 |
|
74 endif |
|
75 |
|
76 $(eval $(call SetupNativeCompilation,BUILD_UNPACKEXE, \ |
61 $(eval $(call SetupNativeCompilation,BUILD_UNPACKEXE, \ |
77 SRC := $(UNPACKEXE_SRC), \ |
62 SRC := $(UNPACKEXE_SRC), \ |
78 TOOLCHAIN := TOOLCHAIN_LINK_CXX, \ |
63 TOOLCHAIN := TOOLCHAIN_LINK_CXX, \ |
79 OPTIMIZATION := LOW, \ |
64 OPTIMIZATION := LOW, \ |
80 CFLAGS := $(UNPACKEXE_CFLAGS) $(CXXFLAGS_JDKEXE) -DFULL, \ |
65 CFLAGS := $(UNPACKEXE_CFLAGS) $(CXXFLAGS_JDKEXE) -DFULL, \ |
81 CFLAGS_release := -DPRODUCT, \ |
66 CFLAGS_release := -DPRODUCT, \ |
82 CFLAGS_linux := -fPIC, \ |
67 CFLAGS_linux := -fPIC, \ |
83 CFLAGS_solaris := -KPIC, \ |
68 CFLAGS_solaris := -KPIC, \ |
84 CFLAGS_macosx := -fPIC, \ |
69 CFLAGS_macosx := -fPIC, \ |
85 DISABLED_WARNINGS_gcc := unused-result implicit-fallthrough, \ |
70 DISABLED_WARNINGS_gcc := unused-result implicit-fallthrough, \ |
86 MAPFILE := $(UNPACK_MAPFILE),\ |
|
87 LDFLAGS := $(UNPACKEXE_ZIPOBJS) \ |
71 LDFLAGS := $(UNPACKEXE_ZIPOBJS) \ |
88 $(LDFLAGS_JDKEXE) $(LDFLAGS_CXX_JDK) \ |
72 $(LDFLAGS_JDKEXE) $(LDFLAGS_CXX_JDK) \ |
89 $(call SET_SHARED_LIBRARY_ORIGIN), \ |
73 $(call SET_SHARED_LIBRARY_ORIGIN), \ |
90 LIBS := $(UNPACKEXE_LIBS) $(LIBCXX), \ |
74 LIBS := $(UNPACKEXE_LIBS) $(LIBCXX), \ |
91 LIBS_solaris := -lc, \ |
75 LIBS_solaris := -lc, \ |