Re: Compiling openssl executable as static binary
Thanks Richard, this is what I was expecting. It worked. Configure script is not showing this option. Configuring OpenSSL version 3.0.0-dev for target Using os-specific seed configuration Usage: Configure [no- ...] [enable- ...] [-Dxxx] [-lxxx] [-Lxxx] [-fxxx] [-Kxxx] [no-hw-xxx|no-hw] [[no-]threads] [[no-]shared] [[no-]zlib|zlib-dynamic] [no-asm] [no-egd] [sctp] [386] [--prefix=DIR] [--openssldir=OPENSSLDIR] [--with-xxx[=vvv]] [--config=FILE] os/compiler[:flags] Regards, Raveendra On Thu, May 23, 2019 at 6:36 PM Richard Levitte wrote: > How static do you want it to be? There is the configuration option > '-static' that makes the binary as independent as possible, i.e. even > links it with static libc. > > Cheers, > Richard > > On Thu, 23 May 2019 08:26:43 +0200, > Raveendra Padasalagi via openssl-users wrote: > > > > > > Hi, > > > > > > > > Any help/pointers on compiling openssl library to generate static > version of openssl executable > > for ARM64 bit linux platform will help. > > > > > > > > Thanks, > > > > Raveendra > > > > > -- > Richard Levitte levi...@openssl.org > OpenSSL Project http://www.openssl.org/~levitte/ >
RE: Compiling openssl executable as static binary
Yes Paul. I tried following steps: export INSTALLDIR=/tmp/openssl_arm export OPENSSLDIR=/tmp/openssl_arm export PATH=$INSTALLDIR/bin:$PATH export CROSS=aarch64-linux-gnu export CC=${CROSS}-gcc export LD=${CROSS}-ld export AS=${CROSS}-as export AR=${CROSS}-ar export AR=${CROSS}-ar ./Configure linux-arm64 *no-shared* make make install Thanks, Raveendra *From:* Dr Paul Dale [mailto:paul.d...@oracle.com] *Sent:* Thursday, May 23, 2019 12:10 PM *To:* Raveendra Padasalagi *Cc:* openssl-users@openssl.org *Subject:* Re: Compiling openssl executable as static binary Link against the generated .a files rather than the .so ones? Pauli -- Dr Paul Dale | Cryptographer | Network Security & Encryption Phone +61 7 3031 7217 Oracle Australia On 23 May 2019, at 4:26 pm, Raveendra Padasalagi via openssl-users < openssl-users@openssl.org> wrote: Hi, Any help/pointers on compiling openssl library to generate static version of openssl executable for ARM64 bit linux platform will help. Thanks, Raveendra
Compiling openssl executable as static binary
Hi, Any help/pointers on compiling openssl library to generate static version of openssl executable for ARM64 bit linux platform will help. Thanks, Raveendra