Re #1050: removed -arch armv6 option from the default CFLAGS generated by configure-iphone, as this is rejected by gcc-4.2.1 that comes with iPhone-3.2 SDK.
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/iphone@3171 74dad513-b988-da41-8d7b-12977e46ad98
diff --git a/configure-iphone b/configure-iphone
index a2cc6ef..67d80df 100755
--- a/configure-iphone
+++ b/configure-iphone
@@ -40,6 +40,7 @@
IPHONESDK=`cat tmpsdkname`.sdk
rm -f tmpsdkname
SDKPATH=${DEVPATH}/SDKs/${IPHONESDK}
+ echo "$F: IPHONESDK is not specified, choosing ${IPHONESDK}"
elif test -d ${IPHONESDK}; then
# .. else if IPHONESDK is set and it points to a valid path, just use it
SDKPATH=${IPHONESDK}
@@ -54,8 +55,6 @@
exit 1
fi
-echo "$F: IPHONESDK is not specified, choosing ${IPHONESDK}"
-
# Default CFLAGS if it's not specified
if test "$CFLAGS" = ""; then
CFLAGS="-O2 -Wno-unused-label"
@@ -98,8 +97,9 @@
fi
# Other settings to feed to configure script.
-export CFLAGS="${CFLAGS} -arch armv6 -isysroot ${SDKPATH}"
-export LDFLAGS="${LDFLAGS} -arch armv6 -isysroot ${SDKPATH} -framework AudioToolbox -framework Foundation"
+#ARCH="-arch armv6"
+export CFLAGS="${CFLAGS} ${ARCH} -isysroot ${SDKPATH}"
+export LDFLAGS="${LDFLAGS} ${ARCH} -isysroot ${SDKPATH} -framework AudioToolbox -framework Foundation"
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
@@ -108,12 +108,14 @@
# Print settings
if test "1" = "1"; then
- echo "$F: calling ./aconfigure with these settings:"
+ echo "$F: calling ./aconfigure with env vars:"
echo " CC = ${CC}"
echo " CXX = ${CXX}"
echo " SDKPATH = ${SDKPATH}"
echo " CFLAGS = ${CFLAGS}"
+ echo " LDFLAGS = ${LDFLAGS}"
echo " AR = ${AR}"
+ echo " RANLIB = ${RANLIB}"
fi
# And finally invoke the configure script itself