Print this page
11528 Makefile.noget can get gone
11529 Use -Wno-maybe-initialized
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/lib/libproc/Makefile.com
+++ new/usr/src/lib/libproc/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 # Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved.
23 23 # Copyright 2012 DEY Storage Systems, Inc. All rights reserved.
24 24 # Copyright (c) 2013 by Delphix. All rights reserved.
25 25 #
26 26 # Copyright (c) 2018, Joyent, Inc.
27 27
28 28 LIBRARY = libproc.a
29 29 VERS = .1
30 30
31 31 CMNOBJS = \
32 32 P32ton.o \
33 33 Pcontrol.o \
34 34 Pcore.o \
35 35 Pexecname.o \
36 36 Pfdinfo.o \
37 37 Pgcore.o \
38 38 Pidle.o \
39 39 Pisprocdir.o \
40 40 Plwpregs.o \
41 41 Pservice.o \
42 42 Psymtab.o \
43 43 Psymtab_machelf32.o \
44 44 $(CMNOBJS64) \
45 45 Pscantext.o \
46 46 Pstack.o \
47 47 Psyscall.o \
48 48 Putil.o \
49 49 Pzone.o \
50 50 pr_door.o \
51 51 pr_exit.o \
52 52 pr_fcntl.o \
53 53 pr_getitimer.o \
54 54 pr_getrctl.o \
55 55 pr_getrlimit.o \
56 56 pr_getsockname.o \
57 57 pr_ioctl.o \
58 58 pr_lseek.o \
59 59 pr_memcntl.o \
60 60 pr_meminfo.o \
61 61 pr_mmap.o \
62 62 pr_open.o \
63 63 pr_pbind.o \
64 64 pr_rename.o \
65 65 pr_sigaction.o \
66 66 pr_stat.o \
67 67 pr_statvfs.o \
68 68 pr_tasksys.o \
69 69 pr_waitid.o \
70 70 proc_get_info.o \
71 71 proc_names.o \
72 72 proc_arg.o \
73 73 proc_set.o \
74 74 proc_stdio.o
75 75
76 76 ISAOBJS = \
77 77 Pisadep.o
78 78
79 79 OBJECTS = $(CMNOBJS) $(ISAOBJS) $(SAVEOBJS)
80 80
81 81 # include library definitions
82 82 include ../../Makefile.lib
83 83 include ../../Makefile.rootfs
84 84
85 85 SRCS = $(CMNOBJS:%.o=../common/%.c) $(ISAOBJS:%.o=%.c)
86 86
87 87 LIBS = $(DYNLIB) $(LINTLIB)
↓ open down ↓ |
87 lines elided |
↑ open up ↑ |
88 88 LDLIBS += -lrtld_db -lelf -lctf -lc
89 89 CSTD = $(CSTD_GNU99)
90 90 CPPFLAGS += $($(MACH64)_CPPFLAGS)
91 91
92 92 SRCDIR = ../common
93 93 $(LINTLIB) := SRCS = $(SRCDIR)/$(LINTSRC)
94 94
95 95 CFLAGS += $(CCVERBOSE)
96 96 CPPFLAGS += -I$(SRCDIR)
97 97
98 -CERRWARN += -_gcc=-Wno-uninitialized
98 +CERRWARN += $(CNOWARN_UNINIT)
99 99 CERRWARN += -_gcc=-Wno-parentheses
100 100 CERRWARN += -_gcc=-Wno-type-limits
101 101 CERRWARN += -_gcc=-Wno-unused-label
102 102
103 103 # not linted
104 104 SMATCH=off
105 105
106 106 # All interfaces are interposable, therefore don't allow direct binding to
107 107 # libproc. Disable libproc from directly binding to itself, but allow libperl
108 108 # to directly bind to its dependencies (ie. map -Bdirect -> -zdirect). Ensure
109 109 # lazy loading is established (which is enabled automatically with -Bdirect).
110 110 BDIRECT =
111 111 DYNFLAGS += $(BNODIRECT) $(ZDIRECT) $(ZLAZYLOAD)
112 112
113 113 .KEEP_STATE:
114 114
115 115 all: $(LIBS)
116 116
117 117 lint: lintcheck
118 118
119 119 # include library targets
120 120 include ../../Makefile.targ
121 121
122 122 objs/%.o pics/%.o: %.c
123 123 $(COMPILE.c) -o $@ $<
124 124 $(POST_PROCESS_O)
125 125
126 126 objs/%.o pics/%.o: $(SRC)/common/saveargs/%.c
127 127 $(COMPILE.c) -o $@ $<
128 128 $(POST_PROCESS_O)
↓ open down ↓ |
20 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX