Print this page
8411 Build should warn when linking against libraries outside proto area
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/lib/krb5/plugins/preauth/pkinit/Makefile.com
+++ new/usr/src/lib/krb5/plugins/preauth/pkinit/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
14 14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
↓ open down ↓ |
14 lines elided |
↑ open up ↑ |
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 #
22 22 # Copyright 2009 Sun Microsystems, Inc. All rights reserved.
23 23 # Use is subject to license terms.
24 24 #
25 +# Copyright 2017 RackTop Systems.
25 26 #
27 +#
26 28
27 29 LIBRARY= pkinit.a
28 30 VERS= .1
29 31
30 32 PKINIT_OBJS= \
31 33 pkinit_accessor.o \
32 34 pkinit_clnt.o \
33 35 pkinit_crypto_openssl.o \
34 36 pkinit_identity.o \
35 37 pkinit_lib.o \
36 38 pkinit_matching.o \
37 39 pkinit_profile.o \
38 40 pkinit_srv.o
39 41
40 42
41 43 OBJECTS= $(PKINIT_OBJS)
42 44
43 45 # include library definitions
44 46 include $(SRC)/lib/krb5/Makefile.lib
45 47
46 48 SRCS= $(PKINIT_OBJS:%.o=../%.c)
47 49
48 50 LIBS= $(DYNLIB)
49 51
50 52 include $(SRC)/lib/gss_mechs/mech_krb5/Makefile.mech_krb5
51 53
52 54 POFILE = $(LIBRARY:%.a=%.po)
53 55 POFILES = generic.po
54 56
55 57 #override liblink
56 58 INS.liblink= -$(RM) $@; $(SYMLINK) $(LIBLINKS)$(VERS) $@
57 59
58 60
59 61 CPPFLAGS += -I$(SRC)/lib/krb5 \
60 62 -I$(SRC)/lib/krb5/kdb \
61 63 -I$(SRC)/lib/gss_mechs/mech_krb5/include \
62 64 -I$(SRC)/lib/gss_mechs/mech_krb5/krb5/os \
63 65 -I$(SRC)/lib/gss_mechs/mech_krb5/include/krb5 \
64 66 -I$(SRC)/uts/common/gssapi/include/ \
↓ open down ↓ |
29 lines elided |
↑ open up ↑ |
65 67 -I$(SRC)/uts/common/gssapi/mechs/krb5/include \
66 68 -I$(SRC)
67 69
68 70 CERRWARN += -_gcc=-Wno-uninitialized
69 71 CERRWARN += -_gcc=-Wno-unused-function
70 72
71 73 CFLAGS += $(CCVERBOSE) -I..
72 74 DYNFLAGS += $(KRUNPATH) $(KMECHLIB) -znodelete
73 75 LDLIBS += -L $(ROOTLIBDIR) -lcrypto -lc
74 76
77 +# Allow libcrypto to be taken from outside the proto area.
78 +$(ADJUNCT_PROTO_NOT_SET)DYNFLAGS += $(ZASSERTDEFLIB)=libcrypto.so
79 +
75 80 ROOTLIBDIR= $(ROOT)/usr/lib/krb5/plugins/preauth
76 81
77 82 $(ROOTLIBDIR):
78 83 $(INS.dir)
79 84
80 85 .KEEP_STATE:
81 86
82 87 all: $(LIBS)
83 88
84 89 lint: lintcheck
85 90
86 91 # include library targets
87 92 include $(SRC)/lib/krb5/Makefile.targ
88 93
89 94 FRC:
90 95
91 96 generic.po: FRC
92 97 $(RM) messages.po
93 98 $(XGETTEXT) $(XGETFLAGS) `$(GREP) -l gettext ../*.[ch]`
94 99 $(SED) "/^domain/d" messages.po > $@
95 100 $(RM) messages.po
↓ open down ↓ |
11 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX