Skip to content

Commit

Permalink
Fix a linker warning on CRAN
Browse files Browse the repository at this point in the history
  • Loading branch information
jeroen committed Jan 23, 2025
1 parent fa4779b commit 3458924
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion libcurl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3458924

Please sign in to comment.