summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLiong Sauw Ming <ming@teluu.com>2013-11-13 05:47:56 +0000
committerLiong Sauw Ming <ming@teluu.com>2013-11-13 05:47:56 +0000
commita9f228f17c309ad59cd014b5edc6f792e9c3753a (patch)
tree9048fd2213c2dcbf1b012b28d22a5d4871580c35
parent72f6d11aa23b64d1697d1301c459293b964b175d (diff)
Re #1516: Set AR and RANLIB (thanks to Brian Walker for the patch)
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@4651 74dad513-b988-da41-8d7b-12977e46ad98
-rwxr-xr-xconfigure-android6
1 files changed, 6 insertions, 0 deletions
diff --git a/configure-android b/configure-android
index 386c01f8..c8fc8f97 100755
--- a/configure-android
+++ b/configure-android
@@ -95,6 +95,8 @@ if test "$1" = "--use-ndk-cflags"; then
export CC="${NDK_CC}"
export CXX="${NDK_CXX}"
+ export AR=`echo ${NDK_CXX}|sed 's/-g++/-ar/'`;
+ export RANLIB=`echo ${NDK_CXX}|sed 's/-g++/-ranlib/'`;
export LDFLAGS="${LDFLAGS} -nostdlib -L${ANDROID_SYSROOT}/usr/lib/"
export LIBS="${LIBS} -lc -lgcc"
@@ -119,6 +121,8 @@ else
export CC="${ANDROID_TC}/bin/${TARGET_HOST}-gcc"
export CXX="${ANDROID_TC}/bin/${TARGET_HOST}-g++"
+ export AR="${ANDROID_TC}/bin/${TARGET_HOST}-ar"
+ export RANLIB="${ANDROID_TC}/bin/${TARGET_HOST}-ranlib"
export LDFLAGS="${LDFLAGS} -nostdlib -L${ANDROID_SYSROOT}/usr/lib/"
export LIBS="${LIBS} -lc -lgcc"
@@ -137,6 +141,8 @@ if test "1" = "1"; then
echo " CXXFLAGS = ${CXXFLAGS}"
echo " LDFLAGS = ${LDFLAGS}"
echo " LIBS = ${LIBS}"
+ echo " AR = ${AR}"
+ echo " RANLIB = ${RANLIB}"
fi
./configure --host=${TARGET_HOST} --disable-video $*