Page 1 of 1

How to compile static openssl? (Solved)

Posted: Tue 03 Mar 2015, 19:05
by Scooby
Tried to compile opnssl static
Seems you can build static libraries but the executable openssl is dynamically linked

Any input on how to achieve this?



Can you use ccrypt in initrd?
From what I can tell it depends on glibc?

*EDIT* tried with ccrypt, it works

Posted: Wed 04 Mar 2015, 06:20
by technosaurus
remove its .so file from whatever /lib directory it was installed it to and re-link it
you _can_ use anything in an initramfs/initrd (I've put X and Chrome in it) ... not that you necessarily should
build it against musl or uclibc (you need that anyhow - a static hello world with glibc is larger than the entire busybox linked with musl)

Posted: Wed 04 Mar 2015, 19:18
by Scooby
Yep that sounds easy and probably is to you

But doing it for the first time might not be that easy


Anyway thanks for pointer will research


*edit*

Succeded in building openssl static with musl

Many thanks techno