Modified cURL building

This commit is contained in:
Shoghi Cervantes 2014-01-31 15:55:16 +01:00
parent 74d4b95a70
commit 5e079b740c

View File

@ -47,7 +47,7 @@ if [ "$1" == "rpi" ]; then
[ -z "$CFLAGS" ] && CFLAGS="-mfloat-abi=hard -mfpu=vfp"; [ -z "$CFLAGS" ] && CFLAGS="-mfloat-abi=hard -mfpu=vfp";
echo "[INFO] Compiling for Raspberry Pi ARMv6zk hard float" echo "[INFO] Compiling for Raspberry Pi ARMv6zk hard float"
elif [ "$1" == "mac" ]; then elif [ "$1" == "mac" ]; then
[ -z "$march" ] && march=prescott; [ -z "$march" ] && march=i386;
[ -z "$mtune" ] && mtune=generic; [ -z "$mtune" ] && mtune=generic;
[ -z "$CFLAGS" ] && CFLAGS="-fomit-frame-pointer"; [ -z "$CFLAGS" ] && CFLAGS="-fomit-frame-pointer";
echo "[INFO] Compiling for Intel MacOS" echo "[INFO] Compiling for Intel MacOS"
@ -187,8 +187,11 @@ else
mv curl-$CURL_VERSION curl mv curl-$CURL_VERSION curl
echo -n " checking..." echo -n " checking..."
cd curl cd curl
./buildconf >> "$DIR/install.log" 2>&1 if [ ! -f ./configure ]; then
./configure --enable-ipv6 \ ./buildconf --force >> "$DIR/install.log" 2>&1
fi
./configure --disable-dependency-tracking \
--enable-ipv6 \
--enable-optimize \ --enable-optimize \
--enable-http \ --enable-http \
--enable-ftp \ --enable-ftp \
@ -201,8 +204,13 @@ else
--disable-smtp \ --disable-smtp \
--disable-telnet \ --disable-telnet \
--disable-tftp \ --disable-tftp \
--disable-ldap \
--disable-ldaps \
--without-libidn \
--enable-threaded-resolver \
--prefix="$DIR/install_data/php/ext/curl" \ --prefix="$DIR/install_data/php/ext/curl" \
--disable-shared \ --disable-shared \
--enable-static \
$CONFIGURE_FLAGS >> "$DIR/install.log" 2>&1 $CONFIGURE_FLAGS >> "$DIR/install.log" 2>&1
echo -n " compiling..." echo -n " compiling..."
make -j $THREADS >> "$DIR/install.log" 2>&1 make -j $THREADS >> "$DIR/install.log" 2>&1