Laura Martín via curl-users
2017-10-09 22:18:25 UTC
Good evening,
I'm trying to compile a completely static curl binary but I get glibc and
others shared:
ldd /opt/curl_Static/bin/curl
linux-vdso.so.1 (0x00007ffc0a5cf000)
libdl.so.2 => /lib64/libdl.so.2 (0x00007f60ff491000)
libc.so.6 => /lib64/libc.so.6 (0x00007f60ff0f8000)
/lib64/ld-linux-x86-64.so.2 (0x00007f60ff695000)
My config stanza:
CPPFLAGS="-I/usr/include" CFLAGS="-static" LDFLAGS="-L/lib64 -static"
LIBS="-ldl -lssl -lcrypto" ./configure --prefix=/opt/curl_Static
--disable-shared --enable-static --disable-threaded-resolver
--with-ssl=/opt/openssl_Static/ --with-tls --with-zlib=/opt/zlib_Static/
I need a completely static curl, because the final servers are very old and
don't have modern versions of glibc and openssl.
Is it possible or have I to compile statically all the environment (gcc,
glibc...)
KR,
I'm trying to compile a completely static curl binary but I get glibc and
others shared:
ldd /opt/curl_Static/bin/curl
linux-vdso.so.1 (0x00007ffc0a5cf000)
libdl.so.2 => /lib64/libdl.so.2 (0x00007f60ff491000)
libc.so.6 => /lib64/libc.so.6 (0x00007f60ff0f8000)
/lib64/ld-linux-x86-64.so.2 (0x00007f60ff695000)
My config stanza:
CPPFLAGS="-I/usr/include" CFLAGS="-static" LDFLAGS="-L/lib64 -static"
LIBS="-ldl -lssl -lcrypto" ./configure --prefix=/opt/curl_Static
--disable-shared --enable-static --disable-threaded-resolver
--with-ssl=/opt/openssl_Static/ --with-tls --with-zlib=/opt/zlib_Static/
I need a completely static curl, because the final servers are very old and
don't have modern versions of glibc and openssl.
Is it possible or have I to compile statically all the environment (gcc,
glibc...)
KR,