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/fs.d/nfs/nfsmapid/Makefile
          +++ new/usr/src/cmd/fs.d/nfs/nfsmapid/Makefile
↓ open down ↓ 23 lines elided ↑ open up ↑
  24   24  #
  25   25  
  26   26  FSTYPE    =     nfs
  27   27  TYPEPROG  =     nfsmapid
  28   28  TESTPROG  =     nfsmapid_test
  29   29  ATTMK     =     $(TYPEPROG)
  30   30  
  31   31  include         ../../Makefile.fstype
  32   32  
  33   33  LDLIBS   +=     -L$(ROOT)/usr/lib/nfs -R/usr/lib/nfs
  34      -LDLIBS   +=     -lnsl -lmapid -ldtrace -lidmap
  35   34  COMMON    =     nfs_resolve.o
  36   35  SRCS      =     nfsmapid.c ../lib/nfs_resolve.c nfsmapid_server.c
  37   36  DSRC      =     nfsmapid_dt.d
  38   37  DOBJ      =     $(DSRC:%.d=%.o)
  39   38  OBJS      =     nfsmapid.o nfsmapid_server.o $(COMMON)
  40   39  CPPFLAGS +=     -I../lib -D_POSIX_PTHREAD_SEMANTICS
  41   40  
  42   41  CERRWARN +=     -_gcc=-Wno-implicit-function-declaration
  43   42  CERRWARN +=     -_gcc=-Wno-unused-variable
  44   43  CERRWARN +=     -_gcc=-Wno-parentheses
  45   44  CERRWARN +=     -_gcc=-Wno-uninitialized
       45 +
       46 +$(TYPEPROG) := LDLIBS += -lnsl -lmapid -ldtrace -lidmap
  46   47  
  47   48  all:            $(TYPEPROG) $(TESTPROG)
  48   49  
  49   50  $(TYPEPROG):    $(OBJS) $(DSRC)
  50   51                  $(COMPILE.d) -s $(DSRC) -o $(DOBJ) $(OBJS)
  51   52                  $(LINK.c) $(ZIGNORE) -o $@ $(DOBJ) $(OBJS) $(LDLIBS)
  52   53                  $(POST_PROCESS)
  53   54  
  54   55  nfs_resolve.o:  ../lib/nfs_resolve.c
  55   56                  $(COMPILE.c) ../lib/nfs_resolve.c
↓ open down ↓ 23 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX