summaryrefslogtreecommitdiff
path: root/TestScripts
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2017-11-10 09:30:47 -0500
committerJeffrey Walton <noloader@gmail.com>2017-11-10 09:30:47 -0500
commit8e06391ad3f14d438c3ebbfaddacff8e470cbaa3 (patch)
tree23f48c34617ec2dcd8ae8833386304caaff7e6e7 /TestScripts
parent289f3caa2a5a3cbf4842b2599caa49cd24851676 (diff)
downloadcryptopp-git-8e06391ad3f14d438c3ebbfaddacff8e470cbaa3.tar.gz
Update setenv-ios.sh to export tools
This is needed for Autotools and cross-compiles. GNUmakefile-cross does not use it
Diffstat (limited to 'TestScripts')
-rwxr-xr-xTestScripts/setenv-ios.sh13
1 files changed, 12 insertions, 1 deletions
diff --git a/TestScripts/setenv-ios.sh b/TestScripts/setenv-ios.sh
index b4604fa0..1dd831c8 100755
--- a/TestScripts/setenv-ios.sh
+++ b/TestScripts/setenv-ios.sh
@@ -275,7 +275,7 @@ fi
FOUND_ALL=1
# Apple's embedded g++ cannot compile integer.cpp
-TOOLS=(clang clang++ ar ranlib libtool ld)
+TOOLS=(clang clang++ libtool ld)
for tool in ${TOOLS[@]}
do
if [ ! -e "$IOS_TOOLCHAIN/$tool" ] && [ ! -e "$XCODE_TOOLCHAIN/$tool" ]; then
@@ -288,6 +288,17 @@ if [ "$FOUND_ALL" -eq "0" ]; then
[ "$0" = "$BASH_SOURCE" ] && exit 1 || return 1
fi
+# Exports added for Autotools. GNUmakefile-cross does not use them.
+# What to do for AR=libtool and ARFLAGS?
+export CPP="$IOS_TOOLCHAIN/cpp"
+export CC="$IOS_TOOLCHAIN/clang"
+export CXX="$IOS_TOOLCHAIN/clang++"
+export LD="$IOS_TOOLCHAIN/ld"
+export AS="$IOS_TOOLCHAIN/as"
+export AR="$IOS_TOOLCHAIN/ar"
+export RANLIB="$IOS_TOOLCHAIN/ranlib"
+export STRIP="$IOS_TOOLCHAIN/strip"
+
echo
echo "*******************************************************************************"
echo "It looks the the environment is set correctly. Your next step is build"