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

@@ -53,10 +53,12 @@
 CPPFLAGS += -D_FILE_OFFSET_BITS=64
 YFLAGS += -d
 LDLIBS += -lm
 LINTFLAGS += -u
 CLEANFILES= maketab proctab.c awk.g.c awk.lx.c y.tab.h
+NATIVELDFLAGS += -Bdirect $(LDCHECKS)
+NATIVE_LIBS= libc.so            # because this is a native tool
 
 .KEEP_STATE:
 
 all: $(PROG) 
 

@@ -75,11 +77,11 @@
 
 proctab.c: maketab
         rm -f $@; ./maketab > $@
 
 maketab: maketab.c
-        $(NATIVECC) $(NATIVE_CFLAGS) maketab.c -o $@ $(LDLIBS)
+        $(NATIVECC) $(NATIVE_CFLAGS) -O maketab.c -o $@ $(NATIVELDFLAGS)
 
 install: all $(ROOTPROG) $(ROOTLINK)
 
 clean:
         $(RM) $(OBJS) $(CLEANFILES)