force using AR and RANLIB in SDK
This commit is contained in:
parent
6565c60f26
commit
3c84f42f4d
1 changed files with 2 additions and 0 deletions
|
@ -9,6 +9,8 @@ function build_for_arch() {
|
||||||
PREFIX=$4
|
PREFIX=$4
|
||||||
IPHONEOS_DEPLOYMENT_TARGET="4.3"
|
IPHONEOS_DEPLOYMENT_TARGET="4.3"
|
||||||
export CC="${DEVROOT}/usr/bin/clang"
|
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 CFLAGS="-arch ${ARCH} -pipe -Os -gdwarf-2 -isysroot ${SYSROOT} -miphoneos-version-min=${IPHONEOS_DEPLOYMENT_TARGET}"
|
||||||
export LDFLAGS="-arch ${ARCH} -isysroot ${SYSROOT}"
|
export LDFLAGS="-arch ${ARCH} -isysroot ${SYSROOT}"
|
||||||
./configure --disable-shared --enable-static --host="${HOST}" --prefix=${PREFIX} && make -j8 && make install
|
./configure --disable-shared --enable-static --host="${HOST}" --prefix=${PREFIX} && make -j8 && make install
|
||||||
|
|
Loading…
Reference in a new issue