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

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/sgs/tools/Makefile.com
          +++ new/usr/src/cmd/sgs/tools/Makefile.com
↓ open down ↓ 36 lines elided ↑ open up ↑
  37   37  
  38   38  include         $(SRC)/cmd/sgs/Makefile.com
  39   39  
  40   40  SGSPROTO=       ../../proto/$(MACH)
  41   41  
  42   42  COMOBJS=
  43   43  
  44   44  NATOBJS=        piglatin.o
  45   45  
  46   46  OBJECTS=        $(COMOBJS)  $(NATOBJS)
       47 +NATIVECC_CFLAGS = -O
       48 +NATIVE_LDFLAGS = $(LDCHECKS) -zassert-deflib=libc.so -Bdirect
  47   49  
  48   50  AVLOBJ=         avl.o
  49   51  TOOL_OBJS=      sgsmsg.o string_table.o findprime.o assfail.o
  50   52  SGSMSG_OBJS=    $(TOOL_OBJS) $(AVLOBJ)
  51   53  SGSMSG_SRCS=    $(TOOL_OBJS:%.o=../common/%.c) \
  52   54                  $(AVLOBJ:%.o=$(VAR_AVLDIR)/%.c)
  53   55  
  54   56  $(SGSMSG_OBJS) := NATIVE_CFLAGS += -I../../include $(VAR_TOOLS_CPPFLAGS)
  55   57  
  56   58  PROGS=          $(COMOBJS:%.o=%)
↓ open down ↓ 12 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX