changeset 13587:f7bc195459a4

2055 libssh lint library includes other libraries, screws up Reviewed by: Gordon Ross <gwr@nexenta.com> Reviewed by: Garrett D'Amore <garrett@damore.org> Reviewed by: Andrew Stormont <Andrew.Stormont@nexenta.com> Approved by: Garrett D'Amore <garrett@damore.org>
author Richard Lowe <richlowe@richlowe.net>
date Wed, 01 Feb 2012 11:05:52 +0000
parents a42b5426edb4
children 4df486ad9a31
files usr/src/cmd/ssh/libssh/Makefile.com
diffstat 1 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- 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 =	../..