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

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/libc/i386/Makefile.com
          +++ new/usr/src/lib/libc/i386/Makefile.com
↓ open down ↓ 1332 lines elided ↑ open up ↑
1333 1333          tls_get_addr.o          \
1334 1334          vforkx.o
1335 1335  
1336 1336  $(ASSYMDEP_OBJS:%=pics/%)       :=      CPPFLAGS += -I.
1337 1337  
1338 1338  $(ASSYMDEP_OBJS:%=pics/%): assym.h
1339 1339  
1340 1340  # assym.h build rules
1341 1341  
1342 1342  GENASSYM_C = $(LIBCDIR)/$(MACH)/genassym.c
     1343 +LDFLAGS.native = $(LDCHECKS) -zassert-deflib=libc.so -Bdirect
1343 1344  
1344 1345  genassym: $(GENASSYM_C)
1345 1346          $(NATIVECC) $(NATIVE_CFLAGS) -I$(LIBCBASE)/inc -I$(LIBCDIR)/inc \
1346      -                -D__EXTENSIONS__ $(CPPFLAGS.native) -o $@ $(GENASSYM_C)
     1347 +                -D__EXTENSIONS__ $(CPPFLAGS.native) $(LDFLAGS.native) \
     1348 +                -o $@ $(GENASSYM_C)
1347 1349  
1348 1350  OFFSETS = $(LIBCDIR)/$(MACH)/offsets.in
1349 1351  
1350 1352  assym.h: $(OFFSETS) genassym
1351 1353          $(OFFSETS_CREATE) <$(OFFSETS) >$@
1352 1354          ./genassym >>$@
1353 1355  
1354 1356  # derived C source and related explicit dependencies
1355 1357  $(LIBCDIR)/port/gen/errlst.c + \
1356 1358  $(LIBCDIR)/port/gen/new_list.c: $(LIBCDIR)/port/gen/errlist $(LIBCDIR)/port/gen/errlist.awk
1357 1359          cd $(LIBCDIR)/port/gen; pwd; $(AWK) -f errlist.awk < errlist
1358 1360  
1359 1361  pics/errlst.o: $(LIBCDIR)/port/gen/errlst.c
1360 1362  
1361 1363  pics/new_list.o: $(LIBCDIR)/port/gen/new_list.c
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX