Print this page
9852 enable ld(1) guidance and deflib assertions for the illumos build
*** 1409,1422 ****
# assym.h build rules
assym.h := CFLAGS += -g
GENASSYM_C = $(LIBCDIR)/$(MACH)/genassym.c
genassym: $(GENASSYM_C)
$(NATIVECC) $(NATIVE_CFLAGS) -I$(LIBCBASE)/inc -I$(LIBCDIR)/inc \
! $(CPPFLAGS.native) -o $@ $(GENASSYM_C)
OFFSETS = $(LIBCDIR)/$(MACH)/offsets.in
assym.h: $(OFFSETS) genassym
$(OFFSETS_CREATE) <$(OFFSETS) >$@
--- 1409,1423 ----
# assym.h build rules
assym.h := CFLAGS += -g
GENASSYM_C = $(LIBCDIR)/$(MACH)/genassym.c
+ LDFLAGS.native = $(LDCHECKS) -zassert-deflib=libc.so -Bdirect
genassym: $(GENASSYM_C)
$(NATIVECC) $(NATIVE_CFLAGS) -I$(LIBCBASE)/inc -I$(LIBCDIR)/inc \
! $(CPPFLAGS.native) $(LDFLAGS.native) -o $@ $(GENASSYM_C)
OFFSETS = $(LIBCDIR)/$(MACH)/offsets.in
assym.h: $(OFFSETS) genassym
$(OFFSETS_CREATE) <$(OFFSETS) >$@