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

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?


HispaBSD admin -
For the developer -
Julio Merino <>