From 38f35db269cafd6ffab893a13714f1f54e43dcb2 Mon Sep 17 00:00:00 2001 From: Benny Prijono Date: Wed, 13 Oct 2010 23:57:11 +0000 Subject: 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 --- configure-iphone | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'configure-iphone') 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 -- cgit v1.2.3