curl / Mailing Lists / curl-library / Single Mail


Re: How to compile libcurl.dll with GnuTLS integrated? (Ray Satiro)

From: Reino Wijnsma <>
Date: Tue, 22 Aug 2017 16:46:29 +0200

On 14-8-2017 12:00, wrote:
> What you can do is make all the dependencies static by signalling static before deplibs and then go back to shared afterwards:
> -Wl,-Bstatic \$deplibs -Wl,-Bdynamiclist

I've configurated libcurl shared:

export PKG_CONFIG="pkg-config --static"
./configure "--host=$host_target --prefix=$mingw_w64_x86_64_prefix
--disable-static --without-ssl --with-gnutls --without-ca-bundle

Next I've changed that line in '/libtool/' in:

archive_cmds="\$CC -shared \$libobjs *-Wl,-Bstatic \$deplibs
-Wl,-Bdynamic* \$compiler_flags -o \$output_objdir/\$soname
\$wl--enable-auto-image-base -Xlinker --out-implib -Xlinker \$lib"

and performed make, but I even then I'm still getting the same message
as before:

*** Warning: This system cannot link to static lib archive
*** I have the capability to make that library automatically link in when
*** you link to this library. But I can only do this if you have a
*** shared version of the library, which you do not appear to have.

The moment I run ./configure --disable-static, make doesn't seem to
accept statically build dependencies.

Received on 2017-08-22