Print this page
8411 Build should warn when linking against libraries outside proto area
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/tools/ctf/dwarf/Makefile.com
+++ new/usr/src/tools/ctf/dwarf/Makefile.com
1 1 #
2 2 # Copyright 2004 Sun Microsystems, Inc. All rights reserved.
3 3 # Use is subject to license terms.
4 4 #
5 5 # Copyright 2011, Richard Lowe.
6 +# Copyright 2017 RackTop Systems.
7 +#
6 8
7 9 include ../../Makefile.ctf
8 10
9 11 LIBRARY= libdwarf.a
10 12 VERS= .1
11 13
12 14 OBJECTS=dwarf_abbrev.o \
13 15 dwarf_addr_finder.o \
14 16 dwarf_alloc.o \
15 17 dwarf_arange.o \
16 18 dwarf_die_deliv.o \
17 19 dwarf_elf_access.o \
18 20 dwarf_error.o \
19 21 dwarf_form.o \
20 22 dwarf_frame.o \
21 23 dwarf_frame2.o \
22 24 dwarf_frame3.o \
23 25 dwarf_funcs.o \
24 26 dwarf_global.o \
25 27 dwarf_harmless.o \
26 28 dwarf_init_finish.o \
27 29 dwarf_leb.o \
28 30 dwarf_line.o \
29 31 dwarf_line2.o \
30 32 dwarf_loc.o \
31 33 dwarf_macro.o \
32 34 dwarf_names.o \
33 35 dwarf_original_elf_init.o \
34 36 dwarf_print_lines.o \
35 37 dwarf_pubtypes.o \
36 38 dwarf_query.o \
37 39 dwarf_ranges.o \
38 40 dwarf_sort_line.o \
39 41 dwarf_string.o \
40 42 dwarf_stubs.o \
41 43 dwarf_types.o \
42 44 dwarf_util.o \
43 45 dwarf_vars.o \
44 46 dwarf_weaks.o \
45 47 malloc_check.o \
46 48 pro_alloc.o \
47 49 pro_arange.o \
48 50 pro_die.o \
49 51 pro_encode_nm.o \
50 52 pro_error.o \
51 53 pro_expr.o \
52 54 pro_finish.o \
53 55 pro_forms.o \
54 56 pro_frame.o \
55 57 pro_funcs.o \
56 58 pro_init.o \
57 59 pro_line.o \
58 60 pro_macinfo.o \
59 61 pro_pubnames.o \
60 62 pro_reloc.o \
61 63 pro_reloc_stream.o \
62 64 pro_reloc_symbolic.o \
63 65 pro_section.o \
64 66 pro_types.o \
65 67 pro_vars.o \
66 68 pro_weaks.o
67 69
68 70 include $(SRC)/lib/Makefile.lib
69 71
70 72 SRCS= $(PICS:%.o=../common/%.c)
71 73
72 74 FILEMODE = 0755
73 75
74 76 SRCDIR = ../common/
75 77
76 78 CPPFLAGS += -I$(SRCDIR) -DELF_TARGET_ALL=1
77 79 CERRWARN += -_gcc=-Wno-unused
78 80 CERRWARN += -_gcc=-Wno-implicit-function-declaration
79 81
80 82 LDLIBS = -lelf -lc
81 83
82 84 .KEEP_STATE:
83 85 .PARALLEL:
84 86
85 87 all: $(DYNLIB)
86 88
87 89 install: all $(ROOTONBLDLIBMACH)/libdwarf.so.1 $(ROOTONBLDLIBMACH)/libdwarf.so
88 90
89 91 $(ROOTONBLDLIBMACH)/%: %
90 92 $(INS.file)
91 93
↓ open down ↓ |
76 lines elided |
↑ open up ↑ |
92 94 $(ROOTONBLDLIBMACH)/$(LIBLINKS): $(ROOTONBLDLIBMACH)/$(LIBLINKS)$(VERS)
93 95 $(INS.liblink)
94 96
95 97 FRC:
96 98
97 99 # We can't provide CTF information for libdwarf, as the CTF tools themselves
98 100 # depond upon it, and so aren't built yet.
99 101 $(DYNLIB) := CTFMERGE_POST= :
100 102 CTFCONVERT_O= :
101 103
104 +# Disable -zassert-deflib. We want to link against host libraries.
105 +$(DYNLIB) := ZASSERTDEFLIB=
106 +
102 107 include $(SRC)/lib/Makefile.targ
103 108
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX