Disable not needed cURL functions

This commit is contained in:
Shoghi Cervantes 2013-05-27 16:36:31 +02:00
parent b7bc0826af
commit a92e4f6acd

View File

@ -11,10 +11,10 @@ CURL_VERSION="curl-7_30_0"
echo "[PocketMine] PHP installer and compiler for Linux & Mac - v$COMPILER_VERSION" echo "[PocketMine] PHP installer and compiler for Linux & Mac - v$COMPILER_VERSION"
DIR="$(pwd)" DIR="$(pwd)"
if gcc -O3 -march=native -mcpu=native -mtune=native -fno-gcse -Q --help=target >> "$DIR/install.log" 2>&1; then if gcc -O3 -march=native -mcpu=native -mtune=native -fno-gcse -pipe -Q --help=target >> "$DIR/install.log" 2>&1; then
export CFLAGS="-O3 -march=native -mcpu=native -mtune=native -fno-gcse" export CFLAGS="-O3 -march=native -mcpu=native -mtune=native -fno-gcse -pipe"
else else
export CFLAGS="-O3" export CFLAGS="-O3 -pipe"
fi fi
date > "$DIR/install.log" 2>&1 date > "$DIR/install.log" 2>&1
uname -a >> "$DIR/install.log" 2>&1 uname -a >> "$DIR/install.log" 2>&1
@ -86,7 +86,17 @@ mv curl-$CURL_VERSION curl
echo -n " checking..." echo -n " checking..."
cd curl cd curl
./buildconf >> "$DIR/install.log" 2>&1 ./buildconf >> "$DIR/install.log" 2>&1
./configure --prefix="$DIR/install_data/php/ext/curl" \ ./configure --enable-ipv6 \
--disable-dict \
--disable-file \
--disable-gopher \
--disable-imap \
--disable-pop3 \
--disable-rtsp \
--disable-smtp \
--disable-telnet \
--disable-tftp \
--prefix="$DIR/install_data/php/ext/curl" \
--disable-shared >> "$DIR/install.log" 2>&1 --disable-shared >> "$DIR/install.log" 2>&1
echo -n " compiling..." echo -n " compiling..."
make >> "$DIR/install.log" 2>&1 make >> "$DIR/install.log" 2>&1