1 #
2 # Copyright (c) 2011, 2019, 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
93
94 $(BUILD_LIBNIO): $(BUILD_LIBNET)
95
96 ################################################################################
97 # Create the macosx security library
98
99 ifeq ($(OPENJDK_TARGET_OS), macosx)
100 # JavaNativeFoundation framework not supported in static builds
101 ifneq ($(STATIC_BUILD), true)
102
103 $(eval $(call SetupJdkLibrary, BUILD_LIBOSXSECURITY, \
104 NAME := osxsecurity, \
105 OPTIMIZATION := LOW, \
106 CFLAGS := $(CFLAGS_JDKLIB), \
107 DISABLED_WARNINGS_clang := deprecated-declarations, \
108 LDFLAGS := $(LDFLAGS_JDKLIB) \
109 -L$(SUPPORT_OUTPUTDIR)/modules_libs/java.base \
110 $(call SET_SHARED_LIBRARY_ORIGIN), \
111 LIBS := \
112 -lobjc \
113 -framework JavaNativeFoundation \
114 -framework CoreServices \
115 -framework Security \
116 $(JDKLIB_LIBS), \
117 ))
118
119 $(BUILD_LIBOSXSECURITY): $(BUILD_LIBJAVA)
120
121 TARGETS += $(BUILD_LIBOSXSECURITY)
122
123 endif
124 endif
125
126 ################################################################################
127 # Create the jsig library
128
129 ifeq ($(OPENJDK_TARGET_OS_TYPE), unix)
130 ifeq ($(STATIC_BUILD), false)
131
132 LIBJSIG_MAPFILE := $(wildcard $(TOPDIR)/make/mapfiles/libjsig/mapfile-vers-$(OPENJDK_TARGET_OS))
133
134 ifeq ($(OPENJDK_TARGET_OS), linux)
135 # FIXME: This is probably not what we want to do, but keep it now for compatibility.
|
1 #
2 # Copyright (c) 2011, 2021, 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
93
94 $(BUILD_LIBNIO): $(BUILD_LIBNET)
95
96 ################################################################################
97 # Create the macosx security library
98
99 ifeq ($(OPENJDK_TARGET_OS), macosx)
100 # JavaNativeFoundation framework not supported in static builds
101 ifneq ($(STATIC_BUILD), true)
102
103 $(eval $(call SetupJdkLibrary, BUILD_LIBOSXSECURITY, \
104 NAME := osxsecurity, \
105 OPTIMIZATION := LOW, \
106 CFLAGS := $(CFLAGS_JDKLIB), \
107 DISABLED_WARNINGS_clang := deprecated-declarations, \
108 LDFLAGS := $(LDFLAGS_JDKLIB) \
109 -L$(SUPPORT_OUTPUTDIR)/modules_libs/java.base \
110 $(call SET_SHARED_LIBRARY_ORIGIN), \
111 LIBS := \
112 -lobjc \
113 -framework CoreServices \
114 -framework Security \
115 -framework Foundation \
116 $(JDKLIB_LIBS), \
117 ))
118
119 $(BUILD_LIBOSXSECURITY): $(BUILD_LIBJAVA)
120
121 TARGETS += $(BUILD_LIBOSXSECURITY)
122
123 endif
124 endif
125
126 ################################################################################
127 # Create the jsig library
128
129 ifeq ($(OPENJDK_TARGET_OS_TYPE), unix)
130 ifeq ($(STATIC_BUILD), false)
131
132 LIBJSIG_MAPFILE := $(wildcard $(TOPDIR)/make/mapfiles/libjsig/mapfile-vers-$(OPENJDK_TARGET_OS))
133
134 ifeq ($(OPENJDK_TARGET_OS), linux)
135 # FIXME: This is probably not what we want to do, but keep it now for compatibility.
|