cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Static linking is broken! Or is it?

From: Sergei Nikulov <sergey.nikulov_at_gmail.com>
Date: Tue, 3 Mar 2015 02:21:24 +0400

Hello,

2015-03-02 21:47 GMT+03:00 Klemen Ferjančič <imbacen_at_gmail.com>:

> Hello
>
> When running cmake with static flag on Windows there is a terrifying
> message on the end of the build:
>
> Cmake command:
> cmake -G "Visual Studio 12" -B./build -H./ -DCURL_STATICLIB=ON
>
> CMake Warning at CMakeLists.txt:1098 (message):
> Static linking is broken!
>
> But static linking seems to work just fine. The comment in CMakeLists.txt
> didn't tell me much either.
>

How do you check this? What does it mean for you - "work just fine"?
Are all tests passed?

>
> Is there anything actually wrong with static linking? Should we not use it?
>

Well, cmake build is sort of 'experimental'.
If it works for your case - then use it and report all discovered issues to
this list.

> -------------------------------------------------------------------
> List admin: http://cool.haxx.se/list/listinfo/curl-library
> Etiquette: http://curl.haxx.se/mail/etiquette.html

-- 
Best Regards,
Sergei Nikulov

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2015-03-02