Print this page
8411 Build should warn when linking against libraries outside proto area
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/cmd/sendmail/src/Makefile
+++ new/usr/src/cmd/sendmail/src/Makefile
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.
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]
↓ open down ↓ |
17 lines elided |
↑ open up ↑ |
18 18 #
19 19 # CDDL HEADER END
20 20 #
21 21
22 22 # Copyright (c) 2011 Gary Mills
23 23
24 24 #
25 25 # Copyright 2009 Sun Microsystems, Inc. All rights reserved.
26 26 # Use is subject to license terms.
27 27 #
28 +# Copyright 2017 RackTop Systems.
29 +#
28 30 # cmd/sendmail/src/Makefile
29 31 #
30 32
31 33 PROG= sendmail
32 34
33 35 include ../../Makefile.cmd
34 36 include ../Makefile.cmd
35 37
36 38 OBJS= alias.o arpadate.o bf.o collect.o conf.o control.o convtime.o daemon.o \
37 39 deliver.o domain.o envelope.o err.o headers.o macro.o main.o map.o \
38 40 mci.o milter.o mime.o parseaddr.o queue.o ratectrl.o readcf.o \
39 41 recipient.o sasl.o savemail.o sfsasl.o sm_resolve.o srvrsmtp.o stab.o \
40 42 stats.o sysexits.o tls.o trace.o udb.o usersmtp.o util.o version.o
↓ open down ↓ |
3 lines elided |
↑ open up ↑ |
41 43
42 44 SRCS= $(OBJS:%.o=%.c)
43 45
44 46 MAPFILES = $(MAPFILE.INT) $(MAPFILE.NGB)
45 47 LDFLAGS += $(MAPFILES:%=-M%)
46 48
47 49 LDLIBS += ../libsmutil/libsmutil.a ../libsm/libsm.a -lresolv -lsocket \
48 50 -lnsl ../db/libdb.a -lldap -lsldap -lwrap -lumem \
49 51 -lssl -lcrypto -lsasl
50 52
53 +# Allow libssl and libcrypto to be taken from outside the proto area.
54 +$(ADJUNCT_PROTO_NOT_SET)LDFLAGS += $(ZASSERTDEFLIB)=libssl.so
55 +$(ADJUNCT_PROTO_NOT_SET)LDFLAGS += $(ZASSERTDEFLIB)=libcrypto.so
56 +
51 57 INCPATH= -I. -I../include -I../db
52 58
53 59 ENVDEF= -DNETINET6 -DTCPWRAPPERS -DSTARTTLS -DSASL=20115
54 60 SUNENVDEF= -DSUN_EXTENSIONS -DVENDOR_DEFAULT=VENDOR_SUN \
55 61 -DSUN_INIT_DOMAIN -DSUN_SIMPLIFIED_LDAP -D_FFR_LOCAL_DAEMON \
56 62 -D_FFR_MAIL_MACRO
57 63
58 64 CPPFLAGS = $(INCPATH) $(ENVDEF) $(SUNENVDEF) $(DBMDEF) $(CPPFLAGS.sm)
59 65
60 66 FILEMODE= 2555
61 67
62 68 ROOTSYMLINKS= $(ROOTLIBSMTPSM)/newaliases
63 69
64 70 # build rule
65 71 #
66 72
67 73 .KEEP_STATE:
68 74 all: $(PROG)
69 75
70 76 .PARALLEL: $(OBJS)
71 77
72 78 $(PROG): $(OBJS) $(MAPFILES) \
73 79 ../libsmutil/libsmutil.a ../libsm/libsm.a ../db/libdb.a
74 80 $(LINK.c) -o $@ $(OBJS) $(LDLIBS)
75 81 $(POST_PROCESS)
76 82
77 83 install: $(ROOTLIBSMTPSM)/sendmail $(ROOTSYMLINKS)
78 84
79 85 $(ROOTSYMLINKS):
80 86 $(RM) $@; $(SYMLINK) sendmail $@
81 87
82 88 clean:
83 89 $(RM) $(PROG) $(OBJS)
84 90
85 91 lint: lint_SRCS
86 92
87 93 include ../../Makefile.targ
↓ open down ↓ |
27 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX