Print this page
don't pass in lint libraries which no longer exist

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/ssh/ssh/Makefile
          +++ new/usr/src/cmd/ssh/ssh/Makefile
↓ open down ↓ 31 lines elided ↑ open up ↑
  32   32            sshtty.o \
  33   33            clientloop.o \
  34   34            gss-clnt.o
  35   35  SRCS    = $(OBJS:.o=.c)
  36   36  
  37   37  include ../../Makefile.cmd
  38   38  include ../Makefile.ssh-common
  39   39  
  40   40  LDLIBS += $(SSH_COMMON_LDLIBS) -lsocket \
  41   41          -lnsl \
  42      -        -lz \
  43      -        -lcrypto \
  44   42          -lgss
  45   43  
       44 +# libcrypto and libz have no lint libraries, so we can only use them when
       45 +# building
       46 +$(PROG) := LDLIBS += -lcrypto -lz
       47 +
  46   48  POFILE_DIR= ..
  47   49  
  48   50  .KEEP_STATE:
  49   51  
  50   52  .PARALLEL: $(OBJS)
  51   53  
  52   54  all: $(PROG)
  53   55  
  54   56  $(PROG): $(OBJS) ../libssh/$(MACH)/libssh.a ../libopenbsd-compat/$(MACH)/libopenbsd-compat.a
  55   57          $(LINK.c) $(OBJS) -o $@ $(LDLIBS) $(DYNFLAGS)
↓ open down ↓ 13 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX