Print this page
9852 enable ld(1) guidance and deflib assertions for the illumos build


1242 $(LIB_PIC): pics $$(PICS)
1243         $(BUILD.AR)
1244         $(MCS) -d -n .SUNW_ctf $@ > /dev/null 2>&1
1245         $(AR) -ts $@ > /dev/null
1246         $(POST_PROCESS_A)
1247 
1248 ASSYMDEP_OBJS=                  \
1249         _lwp_mutex_unlock.o     \
1250         _stack_grow.o           \
1251         asm_subr.o              \
1252         getcontext.o            \
1253         setjmp.o                \
1254         tls_get_addr.o          \
1255         vforkx.o
1256 
1257 $(ASSYMDEP_OBJS:%=pics/%): assym.h
1258 
1259 # assym.h build rules
1260 
1261 GENASSYM_C = genassym.c

1262 
1263 genassym: $(GENASSYM_C)
1264         $(NATIVECC) $(NATIVE_CFLAGS) -Iinc -I$(LIBCDIR)/inc $(CPPFLAGS.native) \
1265                 -o $@ $(GENASSYM_C)
1266 
1267 OFFSETS = $(LIBCDIR)/$(MACH)/offsets.in
1268 
1269 assym.h: $(OFFSETS) genassym
1270         $(OFFSETS_CREATE) <$(OFFSETS) >$@
1271         ./genassym >>$@
1272 
1273 # derived C source and related explicit dependencies
1274 $(LIBCDIR)/port/gen/errlst.c + \
1275 $(LIBCDIR)/port/gen/new_list.c: $(LIBCDIR)/port/gen/errlist $(LIBCDIR)/port/gen/errlist.awk
1276         cd $(LIBCDIR)/port/gen; pwd; $(AWK) -f errlist.awk < errlist
1277 
1278 pics/errlst.o: $(LIBCDIR)/port/gen/errlst.c
1279 
1280 pics/new_list.o: $(LIBCDIR)/port/gen/new_list.c


1242 $(LIB_PIC): pics $$(PICS)
1243         $(BUILD.AR)
1244         $(MCS) -d -n .SUNW_ctf $@ > /dev/null 2>&1
1245         $(AR) -ts $@ > /dev/null
1246         $(POST_PROCESS_A)
1247 
1248 ASSYMDEP_OBJS=                  \
1249         _lwp_mutex_unlock.o     \
1250         _stack_grow.o           \
1251         asm_subr.o              \
1252         getcontext.o            \
1253         setjmp.o                \
1254         tls_get_addr.o          \
1255         vforkx.o
1256 
1257 $(ASSYMDEP_OBJS:%=pics/%): assym.h
1258 
1259 # assym.h build rules
1260 
1261 GENASSYM_C = genassym.c
1262 LDFLAGS.native = $(LDCHECKS) -zassert-deflib=libc.so -Bdirect
1263 
1264 genassym: $(GENASSYM_C)
1265         $(NATIVECC) $(NATIVE_CFLAGS) -Iinc -I$(LIBCDIR)/inc $(CPPFLAGS.native) \
1266                 $(LDFLAGS.native) -o $@ $(GENASSYM_C)
1267 
1268 OFFSETS = $(LIBCDIR)/$(MACH)/offsets.in
1269 
1270 assym.h: $(OFFSETS) genassym
1271         $(OFFSETS_CREATE) <$(OFFSETS) >$@
1272         ./genassym >>$@
1273 
1274 # derived C source and related explicit dependencies
1275 $(LIBCDIR)/port/gen/errlst.c + \
1276 $(LIBCDIR)/port/gen/new_list.c: $(LIBCDIR)/port/gen/errlist $(LIBCDIR)/port/gen/errlist.awk
1277         cd $(LIBCDIR)/port/gen; pwd; $(AWK) -f errlist.awk < errlist
1278 
1279 pics/errlst.o: $(LIBCDIR)/port/gen/errlst.c
1280 
1281 pics/new_list.o: $(LIBCDIR)/port/gen/new_list.c