curl-library
Re: defining CURL_STATICLIB in libcurl.pc
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Fri, 25 May 2012 14:04:18 +0200 (CEST)
Date: Fri, 25 May 2012 14:04:18 +0200 (CEST)
On Thu, 24 May 2012, Mark Brand wrote:
>> And can we really do that to libcurl.pc without ruining how it is used for
>> "normal" shared linking?
>
> -DCURL_STATICLIB should appear in libcurl.pc only when libcurl is built only
> as a static library. I imagine this should be sensitive to the configure
> option '--disable-shared'.
Most builds are likely to build both shared and static libraries, since that's
what configure does by default.
> This solution is not suitable for a configuration building both static and
> shared libcurl, but I don't think this can be done using mingw anyway, which
> is the important case.
The important case for you, yes. libcurl.pc and friends are generic for many
systems though...
-- / daniel.haxx.se ------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.htmlReceived on 2012-05-25