How to compile static openssl? (Solved)

discuss compiling applications for Puppy
Post Reply
Message
Author
Scooby
Posts: 599
Joined: Sat 03 Mar 2012, 09:04

How to compile static openssl? (Solved)

#1 Post 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

User avatar
technosaurus
Posts: 4853
Joined: Mon 19 May 2008, 01:24
Location: Blue Springs, MO
Contact:

#2 Post 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)
Check out my [url=https://github.com/technosaurus]github repositories[/url]. I may eventually get around to updating my [url=http://bashismal.blogspot.com]blogspot[/url].

Scooby
Posts: 599
Joined: Sat 03 Mar 2012, 09:04

#3 Post 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

Post Reply