Print this page
8411 Build should warn when linking against libraries outside proto area
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/lib/libkmf/plugins/kmf_openssl/Makefile.com
+++ new/usr/src/lib/libkmf/plugins/kmf_openssl/Makefile.com
1 1 #
2 2 # CDDL HEADER START
3 3 #
4 4 # The contents of this file are subject to the terms of the
5 5 # Common Development and Distribution License (the "License").
6 6 # You may not use this file except in compliance with the License.
7 7 #
8 8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 9 # or http://www.opensolaris.org/os/licensing.
10 10 # See the License for the specific language governing permissions
11 11 # and limitations under the License.
12 12 #
13 13 # When distributing Covered Code, include this CDDL HEADER in each
↓ open down ↓ |
13 lines elided |
↑ open up ↑ |
14 14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 15 # If applicable, add the following below this CDDL HEADER, with the
16 16 # fields enclosed by brackets "[]" replaced with your own identifying
17 17 # information: Portions Copyright [yyyy] [name of copyright owner]
18 18 #
19 19 # CDDL HEADER END
20 20 #
21 21 # Copyright 2009 Sun Microsystems, Inc. All rights reserved.
22 22 # Use is subject to license terms.
23 23 #
24 +# Copyright 2017 RackTop Systems.
25 +#
24 26 # Makefile for KMF Plugins
25 27 #
26 28
27 29 LIBRARY= kmf_openssl.a
28 30 VERS= .1
29 31
30 32 OBJECTS= openssl_spi.o
31 33
32 34 include $(SRC)/lib/Makefile.lib
33 35
34 36 LIBLINKS= $(DYNLIB:.so.1=.so)
35 37 KMFINC= -I../../../include -I../../../ber_der/inc
↓ open down ↓ |
2 lines elided |
↑ open up ↑ |
36 38
37 39 BERLIB= -lkmf -lkmfberder
38 40 BERLIB64= $(BERLIB)
39 41
40 42 OPENSSLLIBS= $(BERLIB) -lcrypto -lcryptoutil -lc
41 43 OPENSSLLIBS64= $(BERLIB64) -lcrypto -lcryptoutil -lc
42 44
43 45 LINTSSLLIBS = $(BERLIB) -lcrypto -lcryptoutil -lc
44 46 LINTSSLLIBS64 = $(BERLIB64) -lcrypto -lcryptoutil -lc
45 47
48 +# Allow libcrypto to be taken from outside the proto area.
49 +$(ADJUNCT_PROTO_NOT_SET)DYNFLAGS += $(ZASSERTDEFLIB)=libcrypto.so
50 +
46 51 # Because of varying openssl implementations, we need to not have lint
47 52 # complain if we're being liberal in our suppression directives.
48 53 LINTFLAGS += -erroff=E_SUPPRESSION_DIRECTIVE_UNUSED
49 54 LINTFLAGS64 += -erroff=E_SUPPRESSION_DIRECTIVE_UNUSED
50 55
51 56 SRCDIR= ../common
52 57 INCDIR= ../../include
53 58
54 59 CFLAGS += $(CCVERBOSE)
55 60 CPPFLAGS += -D_REENTRANT $(KMFINC) \
56 61 -I$(INCDIR) -I$(ADJUNCT_PROTO)/usr/include/libxml2
57 62
58 63 CERRWARN += -_gcc=-Wno-unused-label
59 64 CERRWARN += -_gcc=-Wno-unused-value
60 65 CERRWARN += -_gcc=-Wno-uninitialized
61 66
62 67 PICS= $(OBJECTS:%=pics/%)
63 68
64 69 lint:= OPENSSLLIBS= $(LINTSSLLIBS)
65 70 lint:= OPENSSLLIBS64= $(LINTSSLLIBS64)
66 71
67 72 LDLIBS32 += $(OPENSSLLIBS)
68 73
69 74 ROOTLIBDIR= $(ROOTFS_LIBDIR)/crypto
70 75 ROOTLIBDIR64= $(ROOTFS_LIBDIR)/crypto/$(MACH64)
71 76
72 77 .KEEP_STATE:
73 78
74 79 LIBS = $(DYNLIB)
75 80 all: $(DYNLIB) $(LINTLIB)
76 81
77 82 lint: lintcheck
78 83
79 84 FRC:
80 85
81 86 include $(SRC)/lib/Makefile.targ
↓ open down ↓ |
26 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX