mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-25 20:33:59 +00:00
Fixed Mac compilation
This commit is contained in:
parent
f6ab39a526
commit
2271d45fd9
@ -93,6 +93,9 @@ cd ..
|
||||
rm -r -f ./zlib
|
||||
echo " done!"
|
||||
|
||||
if [[ "$(uname -s)" == "Darwin" ]]; then
|
||||
WITH_CURL="--with-curl=shared,/usr/local"
|
||||
else
|
||||
#curl
|
||||
echo -n "[cURL] downloading $CURL_VERSION..."
|
||||
wget https://github.com/bagder/curl/archive/$CURL_VERSION.tar.gz --no-check-certificate -q -O - | tar -zx >> "$DIR/install.log" 2>&1
|
||||
@ -120,6 +123,8 @@ echo -n " cleaning..."
|
||||
cd ..
|
||||
rm -r -f ./curl
|
||||
echo " done!"
|
||||
WITH_CURL="--with-curl=\"$DIR/install_data/php/ext/curl\""
|
||||
fi
|
||||
|
||||
#pthreads
|
||||
echo -n "[PHP pthreads] downloading $PTHREADS_VERSION..."
|
||||
@ -151,7 +156,7 @@ rm -f ./configure >> "$DIR/install.log" 2>&1
|
||||
./buildconf --force >> "$DIR/install.log" 2>&1
|
||||
./configure $OPTIMIZATION--prefix="$DIR/php5" \
|
||||
--exec-prefix="$DIR/php5" \
|
||||
--with-curl="$DIR/install_data/php/ext/curl" \
|
||||
"$WITH_CURL" \
|
||||
--with-zlib="$DIR/install_data/php/ext/zlib" \
|
||||
"$HAVE_LIBEDIT" \
|
||||
--disable-libxml \
|
||||
|
Loading…
x
Reference in New Issue
Block a user