Skip to content

Commit

Permalink
Merge pull request #64 from Daniel-Noethen/fix-without-nghttp2
Browse files Browse the repository at this point in the history
Fix compilation without nghttp2 support
  • Loading branch information
jasonacox authored Jul 23, 2023
2 parents abe42df + 3a893cc commit 4983bb5
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 4983bb5

Please sign in to comment.