Print this page
9852 enable ld(1) guidance and deflib assertions for the illumos build
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/cmd/sgs/link_audit/Makefile.com
+++ new/usr/src/cmd/sgs/link_audit/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.
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 #
23 23 # Copyright (c) 1996, 2010, Oracle and/or its affiliates. All rights reserved.
24 24 #
25 25
26 26 include ../../../../lib/Makefile.lib
27 27 include ../../Makefile.com
28 28
29 29 NO_ASM_WARN= -erroff=E_ASM_DISABLES_OPTIMIZATION
30 30
31 31 TRUSSLIB= truss.so.1
32 32 TRUSSSRC= truss.c
33 33
34 34 SYMBINDREP= symbindrep.so.1
35 35 SYMBINDREPSRC= symbindrep.c
36 36
37 37 PERFLIB= perfcnt.so.1
38 38 PERFSRC= perfcnt.c hash.c
39 39
40 40 WHOLIB= who.so.1
41 41 WHOSRC= who.c
↓ open down ↓ |
41 lines elided |
↑ open up ↑ |
42 42
43 43 BINDLIB= bindings.so.1
44 44 BINDSRC= bindings.c
45 45
46 46 ONSCRIPTS= perfcnt symbindrep
47 47 ONPROGS= dumpbind
48 48 ONLIBS= $(SYMBINDREP) $(PERFLIB) $(BINDLIB)
49 49
50 50 USRSCRIPTS= sotruss whocalls
51 51 CCSLIBS= $(TRUSSLIB) $(WHOLIB)
52 -
52 +
53 53 PICDIR= pics
54 54 OBJDIR= objs
55 55
56 56 TRUSSPICS= $(TRUSSSRC:%.c=$(PICDIR)/%.o) $(PICDIR)/env.o
57 57 PERFPICS= $(PERFSRC:%.c=$(PICDIR)/%.o) $(PICDIR)/env.o
58 58 WHOPICS= $(WHOSRC:%.c=$(PICDIR)/%.o) $(PICDIR)/env.o
59 59 SYMBINDREPPICS= $(SYMBINDREPSRC:%.c=$(PICDIR)/%.o) $(PICDIR)/env.o
60 60 BINDPICS= $(BINDSRC:%.c=$(PICDIR)/%.o) $(PICDIR)/env.o
61 61
62 62 $(WHOPICS):= SEMANTICCHK=
63 63
64 64 LDLIBS += $(CONVLIBDIR) $(CONV_LIB)
65 65
66 66 $(TRUSSLIB):= PICS = $(TRUSSPICS)
67 67 $(PERFLIB):= PICS = $(PERFPICS)
68 68 $(WHOLIB):= PICS = $(WHOPICS)
69 69 $(SYMBINDREP):= PICS = $(SYMBINDREPPICS)
70 70 $(BINDLIB):= PICS = $(BINDPICS)
71 71
72 72 $(TRUSSLIB):= LDLIBS += $(ZRECORD) -lmapmalloc -lc
73 73 $(PERFLIB):= LDLIBS += $(ZRECORD) -lmapmalloc -lc
74 74 $(WHOLIB):= LDLIBS += $(ELFLIBDIR) -lelf $(ZRECORD) -lmapmalloc $(DLLIB) -lc
75 75 $(SYMBINDREP):= LDLIBS += $(ZRECORD) -lmapmalloc -lc
76 76 $(BINDLIB):= LDLIBS += $(ZRECORD) -lmapmalloc -lc
77 77
78 78 $(TRUSSLIB):= SONAME = $(TRUSSLIB)
↓ open down ↓ |
16 lines elided |
↑ open up ↑ |
79 79 $(PERFLIB):= SONAME = $(PERFLIB)
80 80 $(WHOLIB):= SONAME = $(WHOLIB)
81 81 $(SYMBINDREP):= SONAME = $(SYMBINDREP)
82 82 $(BINDLIB):= SONAME = $(BINDLIB)
83 83
84 84 $(TRUSSLIB):= MAPFILES = ../common/mapfile-vers-truss
85 85 $(PERFLIB):= MAPFILES = ../common/mapfile-vers-perfcnt
86 86 $(WHOLIB):= MAPFILES = ../common/mapfile-vers-who
87 87 $(SYMBINDREP):= MAPFILES = ../common/mapfile-vers-symbindrep
88 88 $(BINDLIB):= MAPFILES = ../common/mapfile-vers-bindings
89 +
90 +$(ONPROGS):= LDFLAGS += -Bdirect
89 91
90 92 $(ROOTCCSLIB) := DIRMODE = 755
91 93
92 94 CPPFLAGS += -D_REENTRANT
93 95 LDFLAGS += $(CC_USE_PROTO)
94 96 DYNFLAGS += $(VERSREF)
95 97
96 98 LINTFLAGS += -uaxs $(LDLIBS)
97 99 LINTFLAGS64 += -uaxs $(LDLIBS)
98 100
99 101 CLEANFILES += $(LINTOUT) $(OBJDIR)/* $(PICDIR)/*
100 102 CLOBBERFILES += $(ONSCRIPTS) $(ONPROGS) $(ONLIBS) $(CCSLIBS) $(USRSCRIPTS)
101 103
102 104 ROOTONLDLIB= $(ROOT)/opt/SUNWonld/lib
103 105 ROOTONLDLIBS= $(ONLIBS:%=$(ROOTONLDLIB)/%)
104 106 ROOTONLDLIB64= $(ROOTONLDLIB)/$(MACH64)
105 107 ROOTONLDLIBS64= $(ONLIBS:%=$(ROOTONLDLIB64)/%)
106 108
107 109 ROOTONLDBIN= $(ROOT)/opt/SUNWonld/bin
108 110 ROOTONLDBINPROG= $(ONSCRIPTS:%=$(ROOTONLDBIN)/%) \
109 111 $(ONPROGS:%=$(ROOTONLDBIN)/%)
110 112
111 113 ROOTCCSLIB= $(ROOT)/usr/lib/link_audit
112 114 ROOTCCSLIB64= $(ROOT)/usr/lib/link_audit/$(MACH64)
113 115 ROOTCCSLIBS= $(CCSLIBS:%=$(ROOTCCSLIB)/%)
114 116 ROOTCCSLIBS64= $(CCSLIBS:%=$(ROOTCCSLIB64)/%)
115 117
116 118 ROOTUSRBIN= $(ROOT)/usr/bin
117 119 ROOTUSRBINS= $(USRSCRIPTS:%=$(ROOTUSRBIN)/%)
118 120
119 121 FILEMODE= 0755
120 122
121 123 .PARALLEL: $(LIBS) $(PROGS) $(SCRIPTS) $(TRUSSPICS) $(PERFPICS) \
122 124 $(WHOPICS) $(SYMBINDREPPICS) $(BINDPICS)
↓ open down ↓ |
24 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX