Revert "curl: wrap binary so it can find the zlib dylib"
This reverts commit b4a5a049d8
.
This commit is contained in:
parent
7cd3ace827
commit
b63caa13b3
@ -33,8 +33,6 @@ stdenv.mkDerivation rec {
|
|||||||
preConfigure = ''
|
preConfigure = ''
|
||||||
sed -e 's|/usr/bin|/no-such-path|g' -i.bak configure
|
sed -e 's|/usr/bin|/no-such-path|g' -i.bak configure
|
||||||
rm src/tool_hugehelp.c
|
rm src/tool_hugehelp.c
|
||||||
'' ++ stdenv.lib.optionalString stdenv.isDarwin '';
|
|
||||||
export DYLD_LIBRARY_PATH=${zlib}/lib:$DYLD_LIBRARY_PATH
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
# make curl honor CURL_CA_BUNDLE & SSL_CERT_FILE
|
# make curl honor CURL_CA_BUNDLE & SSL_CERT_FILE
|
||||||
@ -43,19 +41,12 @@ stdenv.mkDerivation rec {
|
|||||||
'';
|
'';
|
||||||
|
|
||||||
configureFlags = [
|
configureFlags = [
|
||||||
( if zlibSupport then "--with-zlib=${zlib}" else "--without-zlib" )
|
|
||||||
( if sslSupport then "--with-ssl=${openssl}" else "--without-ssl" )
|
( if sslSupport then "--with-ssl=${openssl}" else "--without-ssl" )
|
||||||
( if scpSupport then "--with-libssh2=${libssh2}" else "--without-libssh2" )
|
( if scpSupport then "--with-libssh2=${libssh2}" else "--without-libssh2" )
|
||||||
]
|
]
|
||||||
++ stdenv.lib.optional c-aresSupport "--enable-ares=${c-ares}"
|
++ stdenv.lib.optional c-aresSupport "--enable-ares=${c-ares}"
|
||||||
++ stdenv.lib.optional gssSupport "--with-gssapi=${gss}";
|
++ stdenv.lib.optional gssSupport "--with-gssapi=${gss}";
|
||||||
|
|
||||||
installPhase = stdenv.lib.optionalString stdenv.isDarwin ''
|
|
||||||
for prog in $out/bin/*; do
|
|
||||||
wrapProgram "$prog" --prefix DYLD_LIBRARY_PATH : "${zlib}/lib"
|
|
||||||
done
|
|
||||||
'';
|
|
||||||
|
|
||||||
CXX = "g++";
|
CXX = "g++";
|
||||||
CXXCPP = "g++ -E";
|
CXXCPP = "g++ -E";
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user