Date: Mon, 01 Feb 2010 13:58:01 +0100 From: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= <des@des.no> To: Jilles Tjoelker <jilles@stack.nl> Cc: Piotr =?utf-8?Q?Buli=C5=84ski?= <bulinskp@iem.pw.edu.pl>, freebsd-current@freebsd.org Subject: Re: Problem with sftp server, static linking, pam and nss_ldap. Message-ID: <86wryx5d0m.fsf@ds4.des.no> In-Reply-To: <861vh56rre.fsf@ds4.des.no> ("Dag-Erling =?utf-8?Q?Sm=C3=B8rg?= =?utf-8?Q?rav=22's?= message of "Mon, 01 Feb 2010 13:54:13 %2B0100") References: <4D59045B-6B03-440C-BCCC-C9C171621475@iem.pw.edu.pl> <20100131125805.GA44187@stack.nl> <861vh56rre.fsf@ds4.des.no>
index | next in thread | previous in thread | raw e-mail
Dag-Erling Smørgrav <des@des.no> writes:
> Jilles Tjoelker <jilles@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)
@@ -5,8 +5,11 @@
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@des.no
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?86wryx5d0m.fsf>
