Hi team,
We are currently building cst 3.3.1 for a linux 64b machine using the following command:
make -j8 OSTYPE=linux64 rel_bin
As a result we get both srktool and cst binaries linking to the libcrypto shared library, which makes it mandatory for any other machine we deploy these artifacts to to have the same shared library.
~/cst-3.3.1/code/cst$ ldd release/linux64/bin/cst
linux-vdso.so.1 => (0x00007ffe19fea000)
libcrypto.so.1.0.0 => /lib/x86_64-linux-gnu/libcrypto.so.1.0.0 (0x00007f4f803d8000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f4f8000e000)
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f4f7fe0a000)
/lib64/ld-linux-x86-64.so.2 (0x00007f4f8081d000)
We noticed the precompiled srktool and cst binaries under path linux64/bin do not link to that shared library, and have a bigger size instead, so we guess the libcrypto library was linked as static in these artifacts:
~/cst-3.3.1$ ldd linux64/bin/cst
linux-vdso.so.1 => (0x00007ffcc4809000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f8baceee000)
/lib64/ld-linux-x86-64.so.2 (0x00007f8bad2b8000)
We are interested into reproducing similar binaries and we would like to know what is the command (or the changes) that was used to create this artifacts with the static library.
My machine is an Ubuntu 16.04 with OpenSSL 1.0.2g 1 Mar 2016.
Thanks,
Gonzalo