Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date: Thu, 06 Nov 2014 19:30:31 +0100
From: Tim Tassonis <>
To: "" <>
Subject: Compiling openssl static with musl

Hi all

I just managed to compile an openssl (openssl-1.0.1i) static binary on
64 bit linux which works fine, it seems.

However, it was quite a PITA, as openssl always wanted to link against
-ldl and always ignored my "-static" whichever way i tried to provide it.

I only got successful after I patched openssl's Configure to add the
following line after line 363:

"linux-x86_64-musl", "gcc:-m64 -DL_ENDIAN -DTERMIO -O3

and then called

./Configure --prefix=$PFX --openssldir=/etc/ssl no-hw zlib no-engines
no-dso no-threads linux-x86_64-musl

Did I miss something or might this be something to document somewhere or
maybe even forward to the openssl people?

Kind regards

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.