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/amd64/Makefile
          +++ new/usr/src/lib/libc/amd64/Makefile
↓ open down ↓ 1251 lines elided ↑ open up ↑
1252 1252          getcontext.o            \
1253 1253          setjmp.o                \
1254 1254          tls_get_addr.o          \
1255 1255          vforkx.o
1256 1256  
1257 1257  $(ASSYMDEP_OBJS:%=pics/%): assym.h
1258 1258  
1259 1259  # assym.h build rules
1260 1260  
1261 1261  GENASSYM_C = genassym.c
     1262 +LDFLAGS.native = $(LDCHECKS) -zassert-deflib=libc.so -Bdirect
1262 1263  
1263 1264  genassym: $(GENASSYM_C)
1264 1265          $(NATIVECC) $(NATIVE_CFLAGS) -Iinc -I$(LIBCDIR)/inc $(CPPFLAGS.native) \
1265      -                -o $@ $(GENASSYM_C)
     1266 +                $(LDFLAGS.native) -o $@ $(GENASSYM_C)
1266 1267  
1267 1268  OFFSETS = $(LIBCDIR)/$(MACH)/offsets.in
1268 1269  
1269 1270  assym.h: $(OFFSETS) genassym
1270 1271          $(OFFSETS_CREATE) <$(OFFSETS) >$@
1271 1272          ./genassym >>$@
1272 1273  
1273 1274  # derived C source and related explicit dependencies
1274 1275  $(LIBCDIR)/port/gen/errlst.c + \
1275 1276  $(LIBCDIR)/port/gen/new_list.c: $(LIBCDIR)/port/gen/errlist $(LIBCDIR)/port/gen/errlist.awk
1276 1277          cd $(LIBCDIR)/port/gen; pwd; $(AWK) -f errlist.awk < errlist
1277 1278  
1278 1279  pics/errlst.o: $(LIBCDIR)/port/gen/errlst.c
1279 1280  
1280 1281  pics/new_list.o: $(LIBCDIR)/port/gen/new_list.c
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX