curl / Mailing Lists / curl-library / Single Mail

curl-library

Re: How to compile libcurl.dll with GnuTLS integrated?

From: Reino Wijnsma <rwijnsma_at_xs4all.nl>
Date: Wed, 23 Aug 2017 01:03:59 +0200

On 14-8-2017 08:58, raysatiro_at_yahoo.com 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
--with-ca-fallback"
unset PKG_CONFIG

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
[...]/libgnutls.la.
*** 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.

-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2017-08-23