curl-library
Re: defining CURL_STATICLIB in libcurl.pc
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Thu, 24 May 2012 22:28:54 +0200 (CEST)
Date: Thu, 24 May 2012 22:28:54 +0200 (CEST)
On Thu, 24 May 2012, Mark Brand wrote:
> However, naively linking Windows applications to static libcurl does not
> work due to CURL_EXTERN introducing the dreaded _imp prefix in the public
> headers.
>
> It seems like a reasonable measure to me to add -DCURL_STATICLIB to Cflags
> in libcurl.pc. This defines away CURL_EXTERN and linking works as expected.
> Or is there a better way?
Wait, you're using libcurl.pc on windows? And can we really do that to
libcurl.pc without ruining how it is used for "normal" shared linking?
-- / daniel.haxx.se ------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.htmlReceived on 2012-05-24