On Wed, 21 Nov 2018, [email protected] wrote:
There is no hint why the system libz is used at all, so my guess was the gcc asks the linker to do it "right" and the linker uses some default paths - but I still dont know why.
The configure script finds the zlib in your custom directory and when you build curl and libcurl it points out that lib. Your config.log shows this.
Is it that you get the system zlib when your app uses this libcurl? If so, the problem is your /etc/ld.so.conf path that makes ld.so find the wrong one first, or set the LD_LIBRARY_PATH environment variable.
Alternatively you rebuild libcurl with "-Wl,-rpath,$path" to the zlib directory.
-- / daniel.haxx.se ------------------------------------------------------------------- Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library Etiquette: https://curl.haxx.se/mail/etiquette.html
