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/ypcmd/yppasswd/Makefile
          +++ new/usr/src/cmd/ypcmd/yppasswd/Makefile
↓ open down ↓ 36 lines elided ↑ open up ↑
  37   37  NETSVC =        $(ROOTLIB)/netsvc
  38   38  NETYP =         $(NETSVC)/yp
  39   39  ROOTDIRS =      $(NETSVC) $(NETYP)
  40   40  
  41   41  # include library definitions
  42   42  #LDLIBS +=      -lrpcsvc -lnsl -lcrypt -lintl -lgen
  43   43  LDLIBS +=       -lnsl -lnisdb -lc
  44   44  MAPFILES =      $(MAPFILE.INT) $(MAPFILE.NGB)
  45   45  LDFLAGS +=      $(MAPFILES:%=-M%)
  46   46  
       47 +# This links with libnisdb, and thus is 'C++', but is otherwise entirely C.  A
       48 +# result of this is that it probably doesn't _actually_ use the C++ runtime, but
       49 +# may in future (depending on compiler implementation)
       50 +#
       51 +# Give up.
       52 +ZGUIDANCE= -zguidance=nounused
       53 +
       54 +$(__SUNC)ADJUNCT_LIBS = libC.so
       55 +
  47   56  # Pick up includes from library
  48   57  CPPFLAGS += -I$(SRC)/lib/libnisdb/yptol
  49   58  
  50   59  # This file is now in the $(SRC)/head/rpcsvc directory.
  51   60  #HDRFILE= yppasswd.h
  52   61  #IHDRFILE= $(HDRFILE:%=$(RPCSVC)/%)
  53   62  
  54   63  INETYPPROG=             $(NETYPPROG:%=$(NETYP)/%)
  55   64  
  56   65  COMMONOBJ =             yppasswdxdr.o yplckpwdf.o
↓ open down ↓ 1 lines elided ↑ open up ↑
  58   67  
  59   68  CERRWARN +=             -_gcc=-Wno-implicit-function-declaration
  60   69  CERRWARN +=             -_gcc=-Wno-parentheses
  61   70  CERRWARN +=             -_gcc=-Wno-uninitialized
  62   71  
  63   72  #
  64   73  # Objects shared between all the major components
  65   74  #
  66   75  SHAREDOBJ= ../shared/utils.o ../shared/lockmap.o ../shared/ancil.o
  67   76  
  68      -OBJS =                  $(RPCYPPASSWDDOBJ) \
       77 +OBJS =                  $(RPCYPPASSWDDOBJ) \
  69   78                          $(COMMONOBJ)
  70   79                          # $(YPPWCONVOBJ) $(YPPASSMGMTOBJ)
  71   80  
  72   81  SRCS =                  $(OBJS:%.o=%.c)
  73   82  
  74   83  #conditional assignments
  75   84  $(INETSVC)   := FILEMODE=555
  76   85  
  77   86  $(ETCDFLTFILE) := FILEMODE=0444
  78   87  
↓ open down ↓ 32 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX