openssh static build - mission impossible?

Ángel González keisial at gmail.com
Wed Mar 7 05:33:33 EST 2012


On 06/03/12 16:13, Mr Dash Four wrote:
>> You could easily dig up an unmodified glibc source to replace this.
> By "unmodified" I presume you mean free of the nss dependencies Fedora
> introduced, right? Is there a way to recompile libc, but exclude those
> dependencies (replacing libc completely is going to open a whole new
> can of worms, I think).
>
>> Also, the suggestion to use uClibc is still a better one. It will
>> make static linking that much easier as well. Another option is to
>> grab Bionic from the Android source tree; either of these is more
>> compact than the stock Fedora monstrosity.
> The problem with this approach is that I already use a compiler as
> well as all sorts of other applications, which rely on a particular
> version of libc present. I am not sure if I can just replace it with
> something else. If I could recompile the same libc version, but
> somehow "strip" the nss dependencies, I think that would be the best
> course of action without causing mayhem.
Recompiling the same glibc version, but from upstream[1] instead of
Fedora should theoretically work. Although I agree replacing glibc is
not without risks.
You could try to install a libc at a separate path, there is surely a
way to do that, yet still cross-compile right.

Finally, the tone of several of your messages to this ml have been more
rude than needed. Please try to keep civility.

1- http://www.gnu.org/software/libc



More information about the openssh-unix-dev mailing list