From c1a36bdd9b0547fd4e03cb809e312c72a0e9487a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Canna=C3=B2?= Date: Sun, 23 Apr 2023 09:38:52 +0000 Subject: [PATCH] compile curl on OSX --- deps/Makefile | 4 +++- deps/curl/configure.patch | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/deps/Makefile b/deps/Makefile index 29d06948d..9b96baef6 100644 --- a/deps/Makefile +++ b/deps/Makefile @@ -151,8 +151,10 @@ curl/curl/lib/.libs/libcurl.a: libssl/openssl/libssl.a cd curl && rm -rf curl-*/ || true cd curl && tar -zxf curl-*.tar.gz # cd curl/curl && ./configure --disable-debug --disable-ftp --disable-ldap --disable-ldaps --disable-rtsp --disable-proxy --disable-dict --disable-telnet --disable-tftp --disable-pop3 --disable-imap --disable-smb --disable-smtp --disable-gopher --disable-manual --disable-ipv6 --disable-sspi --disable-crypto-auth --disable-ntlm-wb --disable-tls-srp --without-nghttp2 --without-libidn2 --without-libssh2 --without-brotli --with-ssl=$(shell pwd)/../../libssl/openssl/ && CC=${CC} CXX=${CXX} ${MAKE} -# cd curl/curl && patch configure < ../configure.patch cd curl/curl && autoreconf -fi +ifeq ($(UNAME_S),Darwin) + cd curl/curl && patch configure < ../configure.patch +endif cd curl/curl && CFLAGS=-fPIC ./configure --disable-debug --disable-ftp --disable-ldap --disable-ldaps --disable-rtsp --disable-proxy --disable-dict --disable-telnet --disable-tftp --disable-pop3 --disable-imap --disable-smb --disable-smtp --disable-gopher --disable-manual --disable-ipv6 --disable-sspi --disable-ntlm-wb --disable-tls-srp --without-nghttp2 --without-libidn2 --without-libssh2 --without-brotli --without-librtmp --without-libpsl --without-zstd --with-ssl=$(shell pwd)/libssl/openssl/ --enable-shared=no && CC=${CC} CXX=${CXX} ${MAKE} curl: curl/curl/lib/.libs/libcurl.a diff --git a/deps/curl/configure.patch b/deps/curl/configure.patch index 2b7664c39..1a60f5c55 100644 --- a/deps/curl/configure.patch +++ b/deps/curl/configure.patch @@ -1,4 +1,4 @@ -@@ -33462,7 +33462,7 @@ +@@ -34014,7 +34014,7 @@ else $as_nop { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5 printf "%s\n" "failed" >&6; } @@ -7,7 +7,7 @@ fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ -@@ -33497,7 +33497,7 @@ +@@ -34049,7 +34049,7 @@ else $as_nop { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5 printf "%s\n" "failed" >&6; }