Print this page
9852 enable ld(1) guidance and deflib assertions for the illumos build
*** 72,85 ****
HASHFILEMODE = 0644
$(ROOTSPELLD)/hstop $(ROOTSPELLD)/hlistb \
$(ROOTSPELLD)/hlista := FILEMODE = 0644
$(ROOTVARADMF) := FILEMODE = 0666
spellin1 hashmk1 := CC = $(NATIVECC)
spellin1 hashmk1 := POST_PROCESS =
spellin1 hashmk1 := CPPFLAGS =
! spellin1 hashmk1 := LDFLAGS =
$(ROOTSPELLD)/% $(ROOTVARADMD)/% : %
$(INS.file)
.KEEP_STATE:
--- 72,93 ----
HASHFILEMODE = 0644
$(ROOTSPELLD)/hstop $(ROOTSPELLD)/hlistb \
$(ROOTSPELLD)/hlista := FILEMODE = 0644
$(ROOTVARADMF) := FILEMODE = 0666
+ #
+ # The native versions of these share targets with the target ones. Because of
+ # that it is important that we override these variables. For example, LDLIBS
+ # will add in the default LDLIBS.cmd which means that we'll link against the
+ # wrong versions of libc.
+ #
spellin1 hashmk1 := CC = $(NATIVECC)
spellin1 hashmk1 := POST_PROCESS =
spellin1 hashmk1 := CPPFLAGS =
! spellin1 hashmk1 := LDFLAGS = -Bdirect
! spellin1 hashmk1 := NATIVE_LIBS = libc.so
! spellin1 hashmk1 := LDLIBS =
$(ROOTSPELLD)/% $(ROOTVARADMD)/% : %
$(INS.file)
.KEEP_STATE: