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/elfedit/modules/Makefile.com
+++ new/usr/src/cmd/sgs/elfedit/modules/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 2010 Sun Microsystems, Inc. All rights reserved.
24 24 # Use is subject to license terms.
25 25 #
26 26 # Copyright 2019 OmniOS Community Edition (OmniOSce) Association.
27 27 #
28 28
29 29 include ../../../../../lib/Makefile.lib
30 30 include ../../../Makefile.com
31 31
32 32 CAP_LIB= cap.so
33 33 CAP_OBJ= cap_msg.o cap32.o cap64.o
34 34
35 35 DYN_LIB= dyn.so
36 36 DYN_OBJ= dyn_msg.o dyn32.o dyn64.o
37 37
38 38 EHDR_LIB= ehdr.so
39 39 EHDR_OBJ= ehdr_msg.o ehdr32.o ehdr64.o
40 40
41 41 PHDR_LIB= phdr.so
42 42 PHDR_OBJ= phdr_msg.o phdr32.o phdr64.o
43 43
44 44 SHDR_LIB= shdr.so
45 45 SHDR_OBJ= shdr_msg.o shdr32.o shdr64.o
46 46
47 47 STR_LIB= str.so
48 48 STR_OBJ= str_msg.o str32.o str64.o
49 49
50 50 SYM_LIB= sym.so
51 51 SYM_OBJ= sym_msg.o sym32.o sym64.o
52 52
53 53 SYMINFO_LIB= syminfo.so
54 54 SYMINFO_OBJ= syminfo_msg.o syminfo32.o syminfo64.o
55 55
56 56 ELFEDITLIBS= $(CAP_LIB) $(DYN_LIB) $(EHDR_LIB) $(PHDR_LIB) \
57 57 $(SHDR_LIB) $(STR_LIB) $(SYM_LIB) $(SYMINFO_LIB)
58 58
59 59 PICDIR= pics
↓ open down ↓ |
59 lines elided |
↑ open up ↑ |
60 60
61 61 CAP_PICS= $(CAP_OBJ:%.o=$(PICDIR)/%.o)
62 62 DYN_PICS= $(DYN_OBJ:%.o=$(PICDIR)/%.o)
63 63 EHDR_PICS= $(EHDR_OBJ:%.o=$(PICDIR)/%.o)
64 64 PHDR_PICS= $(PHDR_OBJ:%.o=$(PICDIR)/%.o)
65 65 SHDR_PICS= $(SHDR_OBJ:%.o=$(PICDIR)/%.o)
66 66 STR_PICS= $(STR_OBJ:%.o=$(PICDIR)/%.o)
67 67 SYM_PICS= $(SYM_OBJ:%.o=$(PICDIR)/%.o)
68 68 SYMINFO_PICS= $(SYMINFO_OBJ:%.o=$(PICDIR)/%.o)
69 69
70 -LDLIBS += $(ELFLIBDIR) -lelf $(LDDBGLIBDIR) $(LDDBG_LIB) \
71 - $(CONVLIBDIR) $(CONV_LIB) -lc
70 +LDLIBS += $(ELFLIBDIR) -lelf $(LDDBGLIBDIR) -llddbg \
71 + $(CONVLIBDIR) -lconv -lc
72 72
73 73 $(CAP_LIB):= PICS = $(CAP_PICS)
74 74 $(DYN_LIB):= PICS = $(DYN_PICS)
75 75 $(EHDR_LIB):= PICS = $(EHDR_PICS)
76 76 $(PHDR_LIB):= PICS = $(PHDR_PICS)
77 77 $(SHDR_LIB):= PICS = $(SHDR_PICS)
78 78 $(STR_LIB):= PICS = $(STR_PICS)
79 79 $(SYM_LIB):= PICS = $(SYM_PICS)
80 80 $(SYMINFO_LIB):= PICS = $(SYMINFO_PICS)
81 81
82 82 $(CAP_LIB):= SONAME = $(CAP_LIB)
83 83 $(DYN_LIB):= SONAME = $(DYN_LIB)
84 84 $(EHDR_LIB):= SONAME = $(EHDR_LIB)
↓ open down ↓ |
3 lines elided |
↑ open up ↑ |
85 85 $(PHDR_LIB):= SONAME = $(PHDR_LIB)
86 86 $(SHDR_LIB):= SONAME = $(SHDR_LIB)
87 87 $(STR_LIB):= SONAME = $(STR_LIB)
88 88 $(SYM_LIB):= SONAME = $(SYM_LIB)
89 89 $(SYMINFO_LIB):= SONAME = $(SYMINFO_LIB)
90 90
91 91 # All the modules use a shared mapfile
92 92 MAPFILES = ../common/mapfile-vers
93 93
94 94 CPPFLAGS += -I../../../include -I../../../include/$(MACH) \
95 - -I../$(SRCBASE)/lib/libc/inc -D_REENTRANT
95 + -I$(SRC)/lib/libc/inc -D_REENTRANT
96 96 LLDFLAGS = '-R$$ORIGIN/../../../lib'
97 97 LLDFLAGS64 = '-R$$ORIGIN/../../../../lib/$(MACH64)'
98 -LDFLAGS += $(CC_USE_PROTO) $(LLDFLAGS)
98 +LDFLAGS += $(LLDFLAGS)
99 99 DYNFLAGS += $(VERSREF)
100 100
101 101 CERRWARN += -_gcc=-Wno-switch
102 102 CERRWARN += -_gcc=-Wno-uninitialized
103 103
104 104 BLTDEFS = $(ELFEDITLIBS:%.so=%_msg.h)
105 105 BLTDATA = $(ELFEDITLIBS:%.so=%_msg.c)
106 106 BLTFILES = $(BLTDEFS) $(BLTDATA)
107 107
108 108 CLEANFILES += $(BLTFILES) $(PICDIR)/*
109 109 CLOBBERFILES += $(ELFEDITLIBS)
110 110
111 111 ROOTELFEDITDIR= $(ROOT)/usr/lib/elfedit
112 112 ROOTELFEDITDIR64= $(ROOT)/usr/lib/elfedit/$(MACH64)
113 113 ROOTELFEDITLIBS= $(ROOTELFEDITDIR)/$(MTARG)$(CAP_LIB) \
114 114 $(ROOTELFEDITDIR)/$(MTARG)$(DYN_LIB) \
115 115 $(ROOTELFEDITDIR)/$(MTARG)$(EHDR_LIB) \
116 116 $(ROOTELFEDITDIR)/$(MTARG)$(PHDR_LIB) \
117 117 $(ROOTELFEDITDIR)/$(MTARG)$(SHDR_LIB) \
118 118 $(ROOTELFEDITDIR)/$(MTARG)$(STR_LIB) \
119 119 $(ROOTELFEDITDIR)/$(MTARG)$(SYM_LIB) \
120 120 $(ROOTELFEDITDIR)/$(MTARG)$(SYMINFO_LIB)
121 121
122 122
123 123 FILEMODE= 0755
124 124
125 125 .PARALLEL: $(ELFEDITLIBS)
↓ open down ↓ |
17 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX