Subject: Buildling a static sshd
To: None <netbsd-users@netbsd.org>
From: Julio Merino <jmmv@hispabsd.org>
List: netbsd-users
Date: 09/01/2002 22:39:01
Hello

I'm trying to build a static ssh daemon, so I can place it in a chroot easily.
I'm using pkgsrc/security/openssh package, but I can't get it. I've tried the
following commands:

$ make LDSTATIC=-static
this left the binaries all dynamic

$ make LDFLAGS=-static
build failed. when linking the ssh binary, it uses '-lssh' and it fails.

Is it there an easy way to compile any package in pkgsrc statically? If not,
how can I manage to get ssh built static?

Thanks

-- 
HispaBSD admin - http://www.HispaBSD.org
For the developer - http://buildtool.sourceforge.net
Julio Merino <jmmv@hispabsd.org>