|
|
Message-ID: <545BBE47.6080708@decentral.ch>
Date: Thu, 06 Nov 2014 19:30:31 +0100
From: Tim Tassonis <stuff@...entral.ch>
To: "musl@...ts.openwall.com" <musl@...ts.openwall.com>
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
-Wall::-D_REENTRANT::-static:SIXTY_FOUR_BIT_LONG RC4_CHUNK DES_INT
DES_UNROLL:${x86_64_asm}:elf:dlfcn:linux-shared:-fPIC:-m64:.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR):::64",
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
Tim
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.