cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Static build without LIBCMT

From: Miroslav Lazic <lazic13_at_gmail.com>
Date: Fri, 28 Aug 2015 11:52:36 +0200

Hello Sergei,

Thank you for your answer.
What I am trying to get is static libcurl which is linked with MSVCRT, not
LIBCMT.
I've tried it and I got libcurl.lib which seems not to exports curl API,
lib.exe /list outputs only .obj files.

On Thursday, August 27, 2015, Sergei Nikulov <sergey.nikulov_at_gmail.com>
wrote:
>
>
> Hello Miroslav,
>
> As far as I understand you just need build static libcurl in debug mode.
> With cmake it can be done in following way.
> Create two folders within curl clone for ex."build.debug" and
> "build.release"
>
> in both folders call cmake
> #cmake .. -DCMAKE_USE_OPENSSL=OFF -DCURL_STATICLIB=ON
>
> then in build.debug
> #cmake --build . --config Debug
> this one should be built with Debug crt lib
>
> in build.release
> #cmake --build . --config Release
> this one should be built with Release crt lib
>
>
> Currently you've get both libcurl.lib with the same name in both folders.
> I believe, we should fix cmake scripts to set prefix "SD" - for static
> debug and "S" for static release.
>
> Could you please check if this will work for you?
> Thank you.
>
>
> --
> Best Regards,
> Sergei Nikulov
>

-- 
*Pozdrav,Miroslav Lazić*

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