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/sparcv9/Makefile.com
          +++ new/usr/src/lib/libc/sparcv9/Makefile.com
↓ open down ↓ 1317 lines elided ↑ open up ↑
1318 1318  
1319 1319  $(ASSYMDEP_OBJS:%=pics/%)       :=      CPPFLAGS += -I.
1320 1320  
1321 1321  $(ASSYMDEP_OBJS:%=pics/%): assym.h
1322 1322  
1323 1323  # assym.h build rules
1324 1324  
1325 1325  assym.h := CFLAGS64 += -g
1326 1326  
1327 1327  GENASSYM_C = $(LIBCDIR)/$(MACH)/genassym.c
     1328 +LDFLAGS.native = $(LDCHECKS) -zassert-deflib=libc.so -Bdirect
1328 1329  
1329 1330  genassym: $(GENASSYM_C)
1330 1331          $(NATIVECC) $(NATIVE_CFLAGS) -I$(LIBCBASE)/inc -I$(LIBCDIR)/inc \
1331      -                $(CPPFLAGS.native) -o $@ $(GENASSYM_C)
     1332 +                $(CPPFLAGS.native) $(LDFLAGS.native) -o $@ $(GENASSYM_C)
1332 1333  
1333 1334  OFFSETS = $(LIBCDIR)/$(MACH)/offsets.in
1334 1335  
1335 1336  assym.h: $(OFFSETS) genassym
1336 1337          $(OFFSETS_CREATE) <$(OFFSETS) >$@
1337 1338          ./genassym >>$@
1338 1339  
1339 1340  # derived C source and related explicit dependencies
1340 1341  $(LIBCDIR)/port/gen/new_list.c: $(LIBCDIR)/port/gen/errlist $(LIBCDIR)/port/gen/errlist.awk
1341 1342          cd $(LIBCDIR)/port/gen; pwd; $(AWK) -f errlist.awk < errlist
1342 1343  
1343 1344  pics/new_list.o: $(LIBCDIR)/port/gen/new_list.c
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX