summaryrefslogtreecommitdiff
path: root/configure-iphone
diff options
context:
space:
mode:
authorBenny Prijono <bennylp@teluu.com>2010-10-13 23:57:11 +0000
committerBenny Prijono <bennylp@teluu.com>2010-10-13 23:57:11 +0000
commit38f35db269cafd6ffab893a13714f1f54e43dcb2 (patch)
treee6477f12e168b23bea5dd5d380f0aba1c95c6d90 /configure-iphone
parent65602b9e9eaea6593544c5904e827b09f8e52904 (diff)
Misc (re #1134): added the missing ARCH environment variable in CPP command in configure-iphone script (thanks MrGecko for the patch)
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3343 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'configure-iphone')
-rwxr-xr-xconfigure-iphone4
1 files changed, 3 insertions, 1 deletions
diff --git a/configure-iphone b/configure-iphone
index 67d80dfd..a2fc090a 100755
--- a/configure-iphone
+++ b/configure-iphone
@@ -17,6 +17,8 @@ if test "$*" = "--help" -o "$*" = "-h"; then
echo " CC Optionally specify the path of the ARM cross compiler"
echo " to use. By default, the compiler is deduced from the"
echo " SDK."
+ echo " ARCH Optional flags to specify target architecture, e.g."
+ echo " ARCH='-arch armv6'"
echo ""
exit 0
fi
@@ -104,7 +106,7 @@ export AR="${DEVPATH}/usr/bin/libtool -static -o"
export RANLIB="echo ranlib"
# Use gcc -E as preprocessor instead of cpp, since cpp will find the
# header files in standard /usr/include instead of in isysroot
-export CPP="${CC} -E -isysroot ${SDKPATH}"
+export CPP="${CC} ${ARCH} -E -isysroot ${SDKPATH}"
# Print settings
if test "1" = "1"; then