Mac: Fix bug in script to build curl-7.47.1 with ssl v2 disabled.

This commit is contained in:
Charlie Fenton 2016-03-02 05:56:47 -08:00
parent c0a71e6c37
commit 64eff512b5
1 changed files with 7 additions and 8 deletions

View File

@ -114,9 +114,10 @@ if [ $? -ne 0 ]; then return 1; fi
echo ""
## Work around a conflict with OpenSSL-1.0.2g
# Patch build/osx/setup/cocoa/include/wx/setup.h
if [ ! -f lib/curl_config.h.orig ]; then
cat >> /tmp/scurl_config_h_diff << ENDOFFILE
# Patch lib/curl_config.h
rm -f lib/curl_config.h.orig ]
cat >> /tmp/scurl_config_h_diff << ENDOFFILE
--- lib/curl_config.h
+++ lib/curl_config_patched.h
@@ -602,2 +602,2 @@
@ -124,11 +125,9 @@ if [ ! -f lib/curl_config.h.orig ]; then
+/* #undef HAVE_SSLV2_CLIENT_METHOD 1 */
ENDOFFILE
patch -bfi /tmp/scurl_config_h_diff lib/curl_config.h
rm -f /tmp/scurl_config_h_diff
else
echo "lib/curl_config.h already patched"
fi
patch -bfi /tmp/scurl_config_h_diff lib/curl_config.h
rm -f /tmp/scurl_config_h_diff
echo ""