Update setenv-ios.sh to export tools

This is needed for Autotools and cross-compiles. GNUmakefile-cross does not use it
pull/548/head
Jeffrey Walton 2017-11-10 09:30:47 -05:00
parent 289f3caa2a
commit 8e06391ad3
No known key found for this signature in database
GPG Key ID: B36AB348921B1838
2 changed files with 24 additions and 2 deletions

View File

@ -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"

View File

@ -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"