From 9ae6d9da91d3553517e723c7c96c837fed6e97f5 Mon Sep 17 00:00:00 2001 From: Bochun Bai Date: Fri, 25 Jul 2014 10:27:51 -0700 Subject: [PATCH] Fix for new "AR" location --- build_libcurl_dist.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/build_libcurl_dist.sh b/build_libcurl_dist.sh index f50c002..3ac5454 100755 --- a/build_libcurl_dist.sh +++ b/build_libcurl_dist.sh @@ -8,12 +8,10 @@ function build_for_arch() { SYSROOT=$3 PREFIX=$4 IPHONEOS_DEPLOYMENT_TARGET="4.3" - export CC="${DEVROOT}/usr/bin/clang" - export AR="${DEVROOT}/usr/bin/ar" - export RANLIB="${DEVROOT}/usr/bin/ranlib" + export PATH="${DEVROOT}/usr/bin/:${PATH}" export CFLAGS="-arch ${ARCH} -pipe -Os -gdwarf-2 -isysroot ${SYSROOT} -miphoneos-version-min=${IPHONEOS_DEPLOYMENT_TARGET}" export LDFLAGS="-arch ${ARCH} -isysroot ${SYSROOT}" - ./configure --disable-shared --enable-static --host="${HOST}" --prefix=${PREFIX} && make -j8 && make install + ./configure --disable-shared --enable-static --with-ssl=${HOME}/Desktop/openssl-ios-dist --host="${HOST}" --prefix=${PREFIX} && make -j8 && make install } TMP_DIR=/tmp/build_libcurl_$$