cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: cURL as a static bin for Mac OSX

From: Erik Ronström <erik.ronstrom_at_doremir.com>
Date: Wed, 29 Jun 2016 21:42:55 +0200

This does not really answer your question, but isn’t OpenSSH built into Mac OS X? So why would you need to include it statically?

Erik

> 27 juni 2016 kl. 19:36 skrev Jan Östlund <janne_at_eastwest.se>:
>
> Hi!
>
> 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!
>
> Regards,
>
> Jan
> -------------------------------------------------------------------
> List admin: https://cool.haxx.se/list/listinfo/curl-library
> Etiquette: https://curl.haxx.se/mail/etiquette.html

-------------------------------------------------------------------
List admin: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2016-06-29