From 3458924ab557f241df80748f38915daa77c2fc63 Mon Sep 17 00:00:00 2001 From: Jeroen Ooms Date: Thu, 23 Jan 2025 17:00:35 +0100 Subject: [PATCH] Fix a linker warning on CRAN --- libcurl | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/libcurl b/libcurl index 79be74edf2..9e0bbd93cc 100644 --- a/libcurl +++ b/libcurl @@ -17,9 +17,14 @@ if [ ! -f "$BREWDIR/lib/libbrewcurl.a" ]; then rm -f libs.tar.xz fi +# Fix a linker warning on CRAN +if [ "$MACOSX_DEPLOYMENT_TARGET" = "11.0" ];then +MMACOS=-mmacosx-version-min=11.3" +fi + # Hardcoded flags PKG_CFLAGS="-I${BREWDIR}/include" -PKG_LIBS="-L${BREWDIR}/lib -lcurl -lnghttp2 -lssl -lcrypto -lldap $(krb5-config --libs) -lz -framework Security -framework SystemConfiguration" +PKG_LIBS="-L${BREWDIR}/lib -lcurl -lnghttp2 -lssl -lcrypto -lldap $(krb5-config --libs) -lz -framework Security -framework SystemConfiguration $MMACOS" # Prevent linking against other libs in /usr/local/lib for FILE in $BREWDIR/lib/*.a; do