Re: Problem with sftp server, static linking, pam and nss_ldap.

From: Dag-Erling Smørgrav <des_at_des.no>
Date: Mon, 01 Feb 2010 13:58:01 +0100
Dag-Erling Smørgrav <des_at_des.no> writes:
> Jilles Tjoelker <jilles_at_stack.nl> writes:
> > Apparently something broke so that sftp-server cannot link to libssh
> > dynamically, even though scp and ssh can still use it.
> Uh, that was an experiment that was committed by mistake.  I was about
> to say "just remove -static", but that uncovers other issues.  I'll look
> into it.

Index: Makefile
===================================================================
--- Makefile	(revision 203341)
+++ Makefile	(working copy)
_at__at_ -5,8 +5,11 _at__at_
 MAN=	sftp-server.8
 CFLAGS+=-I${SSHDIR} -include ssh_namespace.h
 
+# required when linking with a dynamic libssh 
+SRCS+=	roaming_dummy.c
+
 DPADD=	${LIBSSH} ${LIBCRYPT} ${LIBCRYPTO} ${LIBZ}
-LDADD=  -lcrypt -lcrypto -lz -static -lssh
+LDADD=  -lcrypt -lcrypto -lz -lssh
 
 .include <bsd.prog.mk>
 
DES
-- 
Dag-Erling Smørgrav - des_at_des.no
Received on Mon Feb 01 2010 - 11:58:03 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:00 UTC