Print this page
11461 should use a native link-editor during the build
11463 SUNWonld has passed its use-by date
11464 cmd/sgs/tools should contain tools, not common code
11465 sgsmsg should be built with the rest of the build tools
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 # Copyright 2019 OmniOS Community Edition (OmniOSce) Association.
25 25 #
26 26
27 27 include ../../../../lib/Makefile.lib
28 28 include ../../Makefile.com
29 29
30 30 NO_ASM_WARN= -erroff=E_ASM_DISABLES_OPTIMIZATION
31 31
32 32 TRUSSLIB= truss.so.1
33 33 TRUSSSRC= truss.c
34 34
35 35 SYMBINDREP= symbindrep.so.1
36 36 SYMBINDREPSRC= symbindrep.c
37 37
38 38 PERFLIB= perfcnt.so.1
39 39 PERFSRC= perfcnt.c hash.c
40 40
41 41 WHOLIB= who.so.1
42 42 WHOSRC= who.c
43 43
44 44 BINDLIB= bindings.so.1
45 45 BINDSRC= bindings.c
46 46
47 47 ONSCRIPTS= perfcnt symbindrep
48 48 ONPROGS= dumpbind
49 49 ONLIBS= $(SYMBINDREP) $(PERFLIB) $(BINDLIB)
50 50
51 51 USRSCRIPTS= sotruss whocalls
52 52 CCSLIBS= $(TRUSSLIB) $(WHOLIB)
53 53
54 54 PICDIR= pics
↓ open down ↓ |
54 lines elided |
↑ open up ↑ |
55 55 OBJDIR= objs
56 56
57 57 TRUSSPICS= $(TRUSSSRC:%.c=$(PICDIR)/%.o) $(PICDIR)/env.o
58 58 PERFPICS= $(PERFSRC:%.c=$(PICDIR)/%.o) $(PICDIR)/env.o
59 59 WHOPICS= $(WHOSRC:%.c=$(PICDIR)/%.o) $(PICDIR)/env.o
60 60 SYMBINDREPPICS= $(SYMBINDREPSRC:%.c=$(PICDIR)/%.o) $(PICDIR)/env.o
61 61 BINDPICS= $(BINDSRC:%.c=$(PICDIR)/%.o) $(PICDIR)/env.o
62 62
63 63 $(WHOPICS):= SEMANTICCHK=
64 64
65 -LDLIBS += $(CONVLIBDIR) $(CONV_LIB)
65 +LDLIBS += $(CONVLIBDIR) -lconv
66 66
67 67 $(TRUSSLIB):= PICS = $(TRUSSPICS)
68 68 $(PERFLIB):= PICS = $(PERFPICS)
69 69 $(WHOLIB):= PICS = $(WHOPICS)
70 70 $(SYMBINDREP):= PICS = $(SYMBINDREPPICS)
71 71 $(BINDLIB):= PICS = $(BINDPICS)
72 72
73 73 $(TRUSSLIB):= LDLIBS += $(ZRECORD) -lmapmalloc -lc
74 74 $(PERFLIB):= LDLIBS += $(ZRECORD) -lmapmalloc -lc
75 75 $(WHOLIB):= LDLIBS += $(ELFLIBDIR) -lelf $(ZRECORD) -lmapmalloc $(DLLIB) -lc
76 76 $(SYMBINDREP):= LDLIBS += $(ZRECORD) -lmapmalloc -lc
77 77 $(BINDLIB):= LDLIBS += $(ZRECORD) -lmapmalloc -lc
78 78
79 79 $(TRUSSLIB):= SONAME = $(TRUSSLIB)
80 80 $(PERFLIB):= SONAME = $(PERFLIB)
81 81 $(WHOLIB):= SONAME = $(WHOLIB)
82 82 $(SYMBINDREP):= SONAME = $(SYMBINDREP)
83 83 $(BINDLIB):= SONAME = $(BINDLIB)
↓ open down ↓ |
8 lines elided |
↑ open up ↑ |
84 84
85 85 $(TRUSSLIB):= MAPFILES = ../common/mapfile-vers-truss
86 86 $(PERFLIB):= MAPFILES = ../common/mapfile-vers-perfcnt
87 87 $(WHOLIB):= MAPFILES = ../common/mapfile-vers-who
88 88 $(SYMBINDREP):= MAPFILES = ../common/mapfile-vers-symbindrep
89 89 $(BINDLIB):= MAPFILES = ../common/mapfile-vers-bindings
90 90
91 91 $(ROOTCCSLIB) := DIRMODE = 755
92 92
93 93 CPPFLAGS += -D_REENTRANT
94 -LDFLAGS += $(CC_USE_PROTO)
95 94 DYNFLAGS += $(VERSREF)
96 95
97 96 CLEANFILES += $(OBJDIR)/* $(PICDIR)/*
98 97 CLOBBERFILES += $(ONSCRIPTS) $(ONPROGS) $(ONLIBS) $(CCSLIBS) $(USRSCRIPTS)
99 98
100 99 ROOTONLDLIB= $(ROOT)/opt/SUNWonld/lib
101 100 ROOTONLDLIBS= $(ONLIBS:%=$(ROOTONLDLIB)/%)
102 101 ROOTONLDLIB64= $(ROOTONLDLIB)/$(MACH64)
103 102 ROOTONLDLIBS64= $(ONLIBS:%=$(ROOTONLDLIB64)/%)
104 103
105 104 ROOTONLDBIN= $(ROOT)/opt/SUNWonld/bin
106 105 ROOTONLDBINPROG= $(ONSCRIPTS:%=$(ROOTONLDBIN)/%) \
107 106 $(ONPROGS:%=$(ROOTONLDBIN)/%)
108 107
109 108 ROOTCCSLIB= $(ROOT)/usr/lib/link_audit
110 109 ROOTCCSLIB64= $(ROOT)/usr/lib/link_audit/$(MACH64)
111 110 ROOTCCSLIBS= $(CCSLIBS:%=$(ROOTCCSLIB)/%)
112 111 ROOTCCSLIBS64= $(CCSLIBS:%=$(ROOTCCSLIB64)/%)
113 112
114 113 ROOTUSRBIN= $(ROOT)/usr/bin
115 114 ROOTUSRBINS= $(USRSCRIPTS:%=$(ROOTUSRBIN)/%)
116 115
117 116 FILEMODE= 0755
118 117
119 118 .PARALLEL: $(LIBS) $(PROGS) $(SCRIPTS) $(TRUSSPICS) $(PERFPICS) \
120 119 $(WHOPICS) $(SYMBINDREPPICS) $(BINDPICS)
↓ open down ↓ |
16 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX