On 3/12/07, Victor B. Wagner <[EMAIL PROTECTED]> wrote:

On 2007.03.11 at 18:10:01 +0100, Steven Beeckman wrote:

>    Hi,
>
>    I'm trying to get the openssl command-line tool built as a statically
>    linked executable (for an ARM simulator), but it appears to be
>    non-trivial. Running "./Configure no-shared linux-generic32" or even
>    "./config no-shared" doesn't seem to help. Compiling works, but it
results
>    in a dynamically linked executable. The Makefile in the
apps-directory is
>    way too complex for me to figure out the exact gcc-command.

Really, no-shared means that OpenSSL libraries would be compiled
statically. If you want to compile statically EVERYTHING, then you have
to add -static to the LDFLAGS

You don't need to completely understand makefiles to do so.
Just execute command

make LDFLAGS=-static
instead of just make

(I've tested this solution for Linux native compilation only, but it
should work for cross-compilation too)


Thanks, it compiled statically! However, I ran "openssl genrsa 1024" in the
simulator (SimIt-ARM), and I got a lot of floating point errors but I think
it is a problem with the simulator.

A big thanks though!

Steven

Reply via email to