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


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
1339 
1340 # assym.h build rules
1341 
1342 GENASSYM_C = $(LIBCDIR)/$(MACH)/genassym.c

1343 
1344 genassym: $(GENASSYM_C)
1345         $(NATIVECC) $(NATIVE_CFLAGS) -I$(LIBCBASE)/inc -I$(LIBCDIR)/inc \
1346                 -D__EXTENSIONS__ $(CPPFLAGS.native) -o $@ $(GENASSYM_C)

1347 
1348 OFFSETS = $(LIBCDIR)/$(MACH)/offsets.in
1349 
1350 assym.h: $(OFFSETS) genassym
1351         $(OFFSETS_CREATE) <$(OFFSETS) >$@
1352         ./genassym >>$@
1353 
1354 # derived C source and related explicit dependencies
1355 $(LIBCDIR)/port/gen/errlst.c + \
1356 $(LIBCDIR)/port/gen/new_list.c: $(LIBCDIR)/port/gen/errlist $(LIBCDIR)/port/gen/errlist.awk
1357         cd $(LIBCDIR)/port/gen; pwd; $(AWK) -f errlist.awk < errlist
1358 
1359 pics/errlst.o: $(LIBCDIR)/port/gen/errlst.c
1360 
1361 pics/new_list.o: $(LIBCDIR)/port/gen/new_list.c


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
1339 
1340 # assym.h build rules
1341 
1342 GENASSYM_C = $(LIBCDIR)/$(MACH)/genassym.c
1343 LDFLAGS.native = $(LDCHECKS) -zassert-deflib=libc.so -Bdirect
1344 
1345 genassym: $(GENASSYM_C)
1346         $(NATIVECC) $(NATIVE_CFLAGS) -I$(LIBCBASE)/inc -I$(LIBCDIR)/inc \
1347                 -D__EXTENSIONS__ $(CPPFLAGS.native) $(LDFLAGS.native) \
1348                 -o $@ $(GENASSYM_C)
1349 
1350 OFFSETS = $(LIBCDIR)/$(MACH)/offsets.in
1351 
1352 assym.h: $(OFFSETS) genassym
1353         $(OFFSETS_CREATE) <$(OFFSETS) >$@
1354         ./genassym >>$@
1355 
1356 # derived C source and related explicit dependencies
1357 $(LIBCDIR)/port/gen/errlst.c + \
1358 $(LIBCDIR)/port/gen/new_list.c: $(LIBCDIR)/port/gen/errlist $(LIBCDIR)/port/gen/errlist.awk
1359         cd $(LIBCDIR)/port/gen; pwd; $(AWK) -f errlist.awk < errlist
1360 
1361 pics/errlst.o: $(LIBCDIR)/port/gen/errlst.c
1362 
1363 pics/new_list.o: $(LIBCDIR)/port/gen/new_list.c