curl / Mailing Lists / curl-library / Single Mail

curl-library

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

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

On 14-8-2017 12:00, curl-library-request_at_cool.haxx.se 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-22