curl / Mailing Lists / curl-users / Single Mail

curl-users

static cURL

From: Laura Martín via curl-users <curl-users_at_cool.haxx.se>
Date: Tue, 10 Oct 2017 00:18:25 +0200

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,

-----------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-users
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2017-10-10