curl-library
Adding static libcurl.a to xcode 7.2 example project adds libcurl.4.dylib dependency
Date: Mon, 22 Feb 2016 18:50:35 +0000
Dear CURL experts,
I've downloaded 7.47.1 so I can build a static libcurl.a on OS X 10.11.2,
to include in my Xcode 7.2 project / app, for deployment on 10.8 thru
10.11. I was doing this to AVOID any dependencies on libcurl.4.dylib.
However, whenever I add the newly-configured and made libcurl.a to my
project and build the app, running otool -L on the app still shows I have
a dependency on libcurl.4.dylib:
/opt/local/lib/libcurl.4.dylib (compatibility version 9.0.0, current
version 9.0.0)
To build libcurl.a, I ran these in my bash shell:
export MACOSX_DEPLOYMENT_TARGET="10.8"
./configure --disable-share --with-darwinssl
sudo make clean
sudo make install
I've been told I don't need sudo, but I get errors if I don't use it:
rm: .libs/libcurl.a: Permission denied
rm: .libs/libcurl.la: Permission denied
rm: .libs/libcurl.lai: Permission denied
ar: .libs/libcurl.a: Permission denied
NOTE: I also define CURL_STATICLIB in my Xcode build's preprocessor macro
build setting
Here's what configure produces:
curl version: 7.47.1
Host setup: x86_64-apple-darwin15.2.0
Install prefix: /usr/local
Compiler: gcc
SSL support: enabled (iOS/Mac OS X-native)
SSH support: no (--with-libssh2)
zlib support: enabled
GSS-API support: no (--with-gssapi)
TLS-SRP support: no (--enable-tls-srp)
resolver: default (--enable-ares / --enable-threaded-resolver)
IPv6 support: enabled
Unix sockets support: enabled
IDN support: enabled
Build libcurl: Shared=no, Static=yes
Built-in manual: enabled
--libcurl option: enabled (--disable-libcurl-option)
Verbose errors: enabled (--disable-verbose)
SSPI support: no (--enable-sspi)
ca cert bundle: no
ca cert path: no
LDAP support: enabled (OpenLDAP)
LDAPS support: enabled
RTSP support: enabled
RTMP support: no (--with-librtmp)
metalink support: no (--with-libmetalink)
PSL support: no (libpsl not found)
HTTP2 support: disabled (--with-nghttp2)
Protocols: DICT FILE FTP FTPS GOPHER HTTP HTTPS IMAP IMAPS LDAP
LDAPS POP3 POP3S RTSP SMB SMBS SMTP SMTPS TELNET TFTP
Are there other option I need or protocols I must disable to eliminate the
dependency on libcurl.4.dylib?
Thanks,
Stephen
-------------------------------------------------------------------
List admin: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2016-02-22