Print this page
10063 basic support for smatch
10153 checkpaths shouldn't check packaging exceptions


1067 
1068 CFLAGS += $(CCVERBOSE) $(CTF_FLAGS)
1069 
1070 # This is necessary to avoid problems with calling _ex_unwind().
1071 # We probably don't want any inlining anyway.
1072 XINLINE = -xinline=
1073 CFLAGS += $(XINLINE)
1074 
1075 CERRWARN += -_gcc=-Wno-parentheses
1076 CERRWARN += -_gcc=-Wno-switch
1077 CERRWARN += -_gcc=-Wno-uninitialized
1078 CERRWARN += -_gcc=-Wno-unused-value
1079 CERRWARN += -_gcc=-Wno-unused-label
1080 CERRWARN += -_gcc=-Wno-unused-variable
1081 CERRWARN += -_gcc=-Wno-type-limits
1082 CERRWARN += -_gcc=-Wno-char-subscripts
1083 CERRWARN += -_gcc=-Wno-clobbered
1084 CERRWARN += -_gcc=-Wno-unused-function
1085 CERRWARN += -_gcc=-Wno-address
1086 



1087 # Setting THREAD_DEBUG = -DTHREAD_DEBUG (make THREAD_DEBUG=-DTHREAD_DEBUG ...)
1088 # enables ASSERT() checking in the threads portion of the library.
1089 # This is automatically enabled for DEBUG builds, not for non-debug builds.
1090 THREAD_DEBUG =
1091 $(NOT_RELEASE_BUILD)THREAD_DEBUG = -DTHREAD_DEBUG
1092 
1093 # Make string literals read-only to save memory.
1094 CFLAGS += $(XSTRCONST)
1095 
1096 ALTPICS= $(TRACEOBJS:%=pics/%)
1097 
1098 $(DYNLIB) := BUILD.SO = $(LD) -o $@ -G $(DYNFLAGS) $(PICS) $(ALTPICS) \
1099                 $(EXTPICS) $(LDLIBS)
1100 
1101 MAPFILES =      $(LIBCDIR)/port/mapfile-vers
1102 
1103 #
1104 # EXTN_CPPFLAGS and EXTN_CFLAGS set in enclosing Makefile
1105 #
1106 CFLAGS +=       $(EXTN_CFLAGS)


1298 $(LINTLIB):= CPPFLAGS += -D_MSE_INT_H
1299 $(LINTLIB):= LINTFLAGS=-nvx
1300 
1301 # object files that depend on inline template
1302 $(TIL:%=pics/%): $(LIBCBASE)/threads/i386.il
1303 # pics/mul64.o: $(LIBCBASE)/crt/mul64.il
1304 
1305 # include common libc targets
1306 include $(LIBCDIR)/Makefile.targ
1307 
1308 # We need to strip out all CTF and DOF data from the static library
1309 $(LIB_PIC) := DIR = pics
1310 $(LIB_PIC): pics $$(PICS)
1311         $(BUILD.AR)
1312         $(MCS) -d -n .SUNW_ctf $@ > /dev/null 2>&1
1313         $(MCS) -d -n .SUNW_dof $@ > /dev/null 2>&1
1314         $(AR) -ts $@ > /dev/null
1315         $(POST_PROCESS_A)
1316 
1317 $(LIBCBASE)/crt/_rtbootld.s: $(LIBCBASE)/crt/_rtboot.s $(LIBCBASE)/crt/_rtld.c
1318         $(CC) $(CPPFLAGS) $(CTF_FLAGS) -O -S $(C_PICFLAGS) \
1319             $(LIBCBASE)/crt/_rtld.c -o $(LIBCBASE)/crt/_rtld.s
1320         $(CAT) $(LIBCBASE)/crt/_rtboot.s $(LIBCBASE)/crt/_rtld.s > $@
1321         $(RM) $(LIBCBASE)/crt/_rtld.s
1322 
1323 # partially built from C source
1324 pics/_rtbootld.o: $(LIBCBASE)/crt/_rtbootld.s
1325         $(AS) $(ASFLAGS) $(LIBCBASE)/crt/_rtbootld.s -o $@
1326         $(CTFCONVERT_O)
1327 
1328 ASSYMDEP_OBJS=                  \
1329         _lwp_mutex_unlock.o     \
1330         _stack_grow.o           \
1331         getcontext.o            \
1332         setjmp.o                \
1333         tls_get_addr.o          \
1334         vforkx.o
1335 
1336 $(ASSYMDEP_OBJS:%=pics/%)       :=      CPPFLAGS += -I.
1337 
1338 $(ASSYMDEP_OBJS:%=pics/%): assym.h




1067 
1068 CFLAGS += $(CCVERBOSE) $(CTF_FLAGS)
1069 
1070 # This is necessary to avoid problems with calling _ex_unwind().
1071 # We probably don't want any inlining anyway.
1072 XINLINE = -xinline=
1073 CFLAGS += $(XINLINE)
1074 
1075 CERRWARN += -_gcc=-Wno-parentheses
1076 CERRWARN += -_gcc=-Wno-switch
1077 CERRWARN += -_gcc=-Wno-uninitialized
1078 CERRWARN += -_gcc=-Wno-unused-value
1079 CERRWARN += -_gcc=-Wno-unused-label
1080 CERRWARN += -_gcc=-Wno-unused-variable
1081 CERRWARN += -_gcc=-Wno-type-limits
1082 CERRWARN += -_gcc=-Wno-char-subscripts
1083 CERRWARN += -_gcc=-Wno-clobbered
1084 CERRWARN += -_gcc=-Wno-unused-function
1085 CERRWARN += -_gcc=-Wno-address
1086 
1087 # not linted
1088 SMATCH=off
1089 
1090 # Setting THREAD_DEBUG = -DTHREAD_DEBUG (make THREAD_DEBUG=-DTHREAD_DEBUG ...)
1091 # enables ASSERT() checking in the threads portion of the library.
1092 # This is automatically enabled for DEBUG builds, not for non-debug builds.
1093 THREAD_DEBUG =
1094 $(NOT_RELEASE_BUILD)THREAD_DEBUG = -DTHREAD_DEBUG
1095 
1096 # Make string literals read-only to save memory.
1097 CFLAGS += $(XSTRCONST)
1098 
1099 ALTPICS= $(TRACEOBJS:%=pics/%)
1100 
1101 $(DYNLIB) := BUILD.SO = $(LD) -o $@ -G $(DYNFLAGS) $(PICS) $(ALTPICS) \
1102                 $(EXTPICS) $(LDLIBS)
1103 
1104 MAPFILES =      $(LIBCDIR)/port/mapfile-vers
1105 
1106 #
1107 # EXTN_CPPFLAGS and EXTN_CFLAGS set in enclosing Makefile
1108 #
1109 CFLAGS +=       $(EXTN_CFLAGS)


1301 $(LINTLIB):= CPPFLAGS += -D_MSE_INT_H
1302 $(LINTLIB):= LINTFLAGS=-nvx
1303 
1304 # object files that depend on inline template
1305 $(TIL:%=pics/%): $(LIBCBASE)/threads/i386.il
1306 # pics/mul64.o: $(LIBCBASE)/crt/mul64.il
1307 
1308 # include common libc targets
1309 include $(LIBCDIR)/Makefile.targ
1310 
1311 # We need to strip out all CTF and DOF data from the static library
1312 $(LIB_PIC) := DIR = pics
1313 $(LIB_PIC): pics $$(PICS)
1314         $(BUILD.AR)
1315         $(MCS) -d -n .SUNW_ctf $@ > /dev/null 2>&1
1316         $(MCS) -d -n .SUNW_dof $@ > /dev/null 2>&1
1317         $(AR) -ts $@ > /dev/null
1318         $(POST_PROCESS_A)
1319 
1320 $(LIBCBASE)/crt/_rtbootld.s: $(LIBCBASE)/crt/_rtboot.s $(LIBCBASE)/crt/_rtld.c
1321         $(CC) $(CPPFLAGS) -_smatch=off $(CTF_FLAGS) -O -S $(C_PICFLAGS) \
1322             $(LIBCBASE)/crt/_rtld.c -o $(LIBCBASE)/crt/_rtld.s
1323         $(CAT) $(LIBCBASE)/crt/_rtboot.s $(LIBCBASE)/crt/_rtld.s > $@
1324         $(RM) $(LIBCBASE)/crt/_rtld.s
1325 
1326 # partially built from C source
1327 pics/_rtbootld.o: $(LIBCBASE)/crt/_rtbootld.s
1328         $(AS) $(ASFLAGS) $(LIBCBASE)/crt/_rtbootld.s -o $@
1329         $(CTFCONVERT_O)
1330 
1331 ASSYMDEP_OBJS=                  \
1332         _lwp_mutex_unlock.o     \
1333         _stack_grow.o           \
1334         getcontext.o            \
1335         setjmp.o                \
1336         tls_get_addr.o          \
1337         vforkx.o
1338 
1339 $(ASSYMDEP_OBJS:%=pics/%)       :=      CPPFLAGS += -I.
1340 
1341 $(ASSYMDEP_OBJS:%=pics/%): assym.h