curl / Mailing Lists / curl-library / Single Mail
Buy commercial curl support from WolfSSL. We help you work out your issues, debug your libcurl applications, use the API, port to new platforms, add new features and more. With a team lead by the curl founder himself.

RE: Curl Configuration Weirdness for libz.a

From: Randall via curl-library <>
Date: Wed, 30 Aug 2023 17:03:34 -0400

>-----Original Message-----
>From: curl-library <> On Behalf Of Dan
>via curl-library
>Sent: Wednesday, August 30, 2023 3:50 PM
>Cc: Dan Fandrich <>
>Subject: Re: Curl Configuration Weirdness for libz.a
>On Wed, Aug 30, 2023 at 03:27:34PM -0400, Randall via curl-library wrote:
>> ln: failed to create hard link '.libs/libcurl.lax/lt1-libz.a' =>
>> '/usr/coreutils/lib/libz.a': Cross-device link
>This looks like a bad assumption on the part of libtool that a hard link is
possible. I
>don't know why it's try to do this in the first place. Have you tried
updating libtool?
>What configure options and environment variables are you giving when this

Actually, there is no libtool on the platform, so upgrading will be
difficult. No LIB, INCLUDES, or other compile-related environment variables.

For the OpenSSL 3.0 build:
-WIEEE_float -I/usr/coreutils/include -I/usr/local-ssl3.0/openssl/include"
LDFLAGS="/usr/coreutils/lib/libz.a -L/usr/coreutils/lib
-L/usr/local-ssl3.0/lib" ./configure --prefix=/usr/local-ssl3.0
--with-ssl=/usr/local-ssl3.0 --with-ca-path=/usr/local-ssl3.0/ssl/certs
--disable-pthreads --disable-threaded-resolver --enable-ipv6

For the OpenSSL 1.1.1 build:
-I/usr/coreutils/include -I/usr/local-ssl1.1/include"
LDFLAGS="/usr/coreutils/lib/libz.a -L/usr/local-ssl1.1/lib
-L/usr/coreutils/lib -L/usr/local/lib" ./configure
--prefix=/usr/local-ssl1.1 --with-ssl=/usr/local-ssl1.1
--with-ca-path=/usr/local-ssl1.1/ssl/certs --disable-pthreads
--disable-threaded-resolver --enable-ipv6
--with-zlib=/usr/coreutils/lib/libz.a --with-openssl


Received on 2023-08-30