Skip to content

Commit

Permalink
Fix compilation without nghttp2 support
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel-Noethen authored Jul 22, 2023
1 parent abe42df commit 3a893cc
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions curl/libcurl-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,9 @@ buildMac()
if [ $nohttp2 == "1" ]; then
NGHTTP2CFG="--with-nghttp2=${NGHTTP2}/Mac/${ARCH}"
NGHTTP2LIB="-L${NGHTTP2}/Mac/${ARCH}/lib"
else
NGHTTP2CFG="--without-nghttp2"
NGHTTP2LIB=""
fi

TARGET="darwin-i386-cc"
Expand Down Expand Up @@ -283,6 +286,9 @@ buildCatalyst()
if [ $nohttp2 == "1" ]; then
NGHTTP2CFG="--with-nghttp2=${NGHTTP2}/Catalyst/${ARCH}"
NGHTTP2LIB="-L${NGHTTP2}/Catalyst/${ARCH}/lib"
else
NGHTTP2CFG="--without-nghttp2"
NGHTTP2LIB=""
fi

export $PLATFORM
Expand Down Expand Up @@ -327,6 +333,9 @@ buildIOS()
if [ $nohttp2 == "1" ]; then
NGHTTP2CFG="--with-nghttp2=${NGHTTP2}/${PLATFORMDIR}/${ARCH}"
NGHTTP2LIB="-L${NGHTTP2}/${PLATFORMDIR}/${ARCH}/lib"
else
NGHTTP2CFG="--without-nghttp2"
NGHTTP2LIB=""
fi

export $PLATFORM
Expand Down Expand Up @@ -371,6 +380,9 @@ buildIOSsim()
if [ $nohttp2 == "1" ]; then
NGHTTP2CFG="--with-nghttp2=${NGHTTP2}/${PLATFORMDIR}/${ARCH}"
NGHTTP2LIB="-L${NGHTTP2}/${PLATFORMDIR}/${ARCH}/lib"
else
NGHTTP2CFG="--without-nghttp2"
NGHTTP2LIB=""
fi

TARGET="darwin-i386-cc"
Expand Down Expand Up @@ -428,6 +440,9 @@ buildTVOS()
if [ $nohttp2 == "1" ]; then
NGHTTP2CFG="--with-nghttp2=${NGHTTP2}/tvOS/${ARCH}"
NGHTTP2LIB="-L${NGHTTP2}/tvOS/${ARCH}/lib"
else
NGHTTP2CFG="--without-nghttp2"
NGHTTP2LIB=""
fi

export $PLATFORM
Expand Down Expand Up @@ -473,6 +488,9 @@ buildTVOSsim()
if [ $nohttp2 == "1" ]; then
NGHTTP2CFG="--with-nghttp2=${NGHTTP2}/${PLATFORMDIR}/${ARCH}"
NGHTTP2LIB="-L${NGHTTP2}/${PLATFORMDIR}/${ARCH}/lib"
else
NGHTTP2CFG="--without-nghttp2"
NGHTTP2LIB=""
fi

TARGET="darwin64-${ARCH}-cc"
Expand Down

0 comments on commit 3a893cc

Please sign in to comment.