Print this page
11528 Makefile.noget can get gone
11529 Use -Wno-maybe-initialized
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/lib/libdll/Makefile.com
+++ new/usr/src/lib/libdll/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 2009 Sun Microsystems, Inc. All rights reserved.
24 24 # Use is subject to license terms.
25 25 #
26 26 # Copyright (c) 2018, Joyent, Inc.
27 27
28 28 SHELL=/usr/bin/ksh93
29 29
30 30 LIBRARY= libdll.a
31 31 VERS= .1
32 32
33 33 OBJECTS= \
34 34 dlfcn.o \
35 35 dllfind.o \
36 36 dlllook.o \
37 37 dllnext.o \
38 38 dllopen.o \
39 39 dllplug.o \
40 40 dllscan.o
41 41
42 42 include ../../Makefile.astmsg
43 43
44 44 include ../../Makefile.lib
45 45
46 46 # mapfile-vers does not live with the sources in in common/ to make
47 47 # automated code updates easier.
48 48 MAPFILES= ../mapfile-vers
49 49
50 50 # Set common AST build flags (e.g. C99/XPG6, needed to support the math stuff)
51 51 include ../../../Makefile.ast
52 52
53 53 LIBS = $(DYNLIB) $(LINTLIB)
54 54
55 55 LDLIBS += \
56 56 -last \
57 57 -lc
58 58
59 59 $(LINTLIB) := SRCS = $(SRCDIR)/$(LINTSRC)
60 60
61 61 SRCDIR = ../common
62 62
63 63 # We use "=" here since using $(CPPFLAGS.master) is very tricky in our
64 64 # case - it MUST come as the last element but future changes in -D options
65 65 # may then cause silent breakage in the AST sources because the last -D
66 66 # option specified overrides previous -D options so we prefer the current
67 67 # way to explicitly list each single flag.
68 68 # Notes:
69 69 # - "-D_BLD_DLL" comes from ${mam_cc_DLL} in Mamfile
70 70 CPPFLAGS = \
71 71 $(DTEXTDOM) $(DTS_ERRNO) \
72 72 $(DLLPLATFORMCPPFLAGS) \
73 73 -I. \
74 74 -I$(ROOT)/usr/include/ast \
75 75 -I$(ROOT)/usr/include \
76 76 '-DCONF_LIBSUFFIX=".so"' \
77 77 '-DCONF_LIBPREFIX="lib"' \
↓ open down ↓ |
77 lines elided |
↑ open up ↑ |
78 78 -D_BLD_dll \
79 79 -D_PACKAGE_ast \
80 80 -D_BLD_DLL
81 81
82 82 CFLAGS += \
83 83 $(ASTCFLAGS)
84 84 CFLAGS64 += \
85 85 $(ASTCFLAGS64)
86 86
87 87 CERRWARN += -_gcc=-Wno-parentheses
88 -CERRWARN += -_gcc=-Wno-uninitialized
88 +CERRWARN += $(CNOWARN_UNINIT)
89 89
90 90 # needs work
91 91 SMOFF += all_func_returns,strcpy_overflow
92 92
93 93 .KEEP_STATE:
94 94
95 95 all: $(LIBS)
96 96
97 97 #
98 98 # libdll is not lint-clean yet; fake up a target. (You can use
99 99 # "make lintcheck" to actually run lint; please send all lint fixes
100 100 # upstream (to AT&T) so the next update will pull them into ON.)
101 101 #
102 102 lint:
103 103 @ print "usr/src/lib/libdll is not lint-clean: skipping"
104 104
105 105 include ../../Makefile.targ
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX