From 3c84f42f4dc5a1e1b66e1f2885a47391cf31a5e6 Mon Sep 17 00:00:00 2001 From: Bochun Bai Date: Wed, 21 May 2014 00:58:04 -0700 Subject: [PATCH] force using AR and RANLIB in SDK --- build_libcurl_dist.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/build_libcurl_dist.sh b/build_libcurl_dist.sh index f7198ce..f50c002 100755 --- a/build_libcurl_dist.sh +++ b/build_libcurl_dist.sh @@ -9,6 +9,8 @@ function build_for_arch() { 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 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