cURL / Mailing Lists / curl-library / Single Mail


cURL as a static bin for Mac OSX

From: Jan Östlund <>
Date: Mon, 27 Jun 2016 19:36:40 +0200


In theory, is it possible to build cURL with SSH2-support as a static bin with no depedencies to dylibs?

This is my configure command and I am using —disable-shared and —enable-static:

./configure --disable-shared --with-darwinssl --enable-threaded-resolver --enable-static --with-libssh2=/usr/local --disable-dict --disable-telnet --disable-pop3 --disable-rtsp --disable-imap --disable-smtp --disable-gopher --disable-ldap --without-zlib --without-libidn

When I run otool -L curl on the compiled binary I can see that it’s linking to /usr/local/lib/libssh2.1.dylib even I have specified —enable-static and —disable-shared.

Is it possible?

Or do I have to ship cURL with the dylib in the app-bundle and change the link in my custom curl-build with install_name_tool?

Any hint are appreciated!



List admin:
Received on 2016-06-27