# HG changeset patch # User Richard Lowe # Date 1328094352 0 # Node ID f7bc195459a4fe3f4ac428f99bd70e68b5b6837f # Parent a42b5426edb4d844f23e2edace1aca2c9e1bbdb5 2055 libssh lint library includes other libraries, screws up Reviewed by: Gordon Ross Reviewed by: Garrett D'Amore Reviewed by: Andrew Stormont Approved by: Garrett D'Amore diff -r a42b5426edb4 -r f7bc195459a4 usr/src/cmd/ssh/libssh/Makefile.com --- a/usr/src/cmd/ssh/libssh/Makefile.com Wed Feb 01 20:59:19 2012 +0400 +++ b/usr/src/cmd/ssh/libssh/Makefile.com Wed Feb 01 11:05:52 2012 +0000 @@ -91,11 +91,11 @@ LIBS = $(LIBRARY) $(LINTLIB) -# definitions for lint -# Until libz is compiled against unsigned uid/gid ON bits. -#LINTFLAGS += -lcrypto -lz -lsocket -lnsl -lc -LINTFLAGS += -lcrypto -lsocket -lnsl -lc -$(LINTLIB) := SRCS = $(SRCDIR)/$(LINTSRC) +# Define LDLIBS conditionally for lintcheck, rather than in general, since +# we're building an archive library which itself links to nothing, we just +# want lint to know about these libraries. +lintcheck := LDLIBS += -lcrypto -lz -lsocket -lnsl -lc +$(LINTLIB) := SRCS = $(SRCDIR)/$(LINTSRC) POFILE_DIR = ../..