Use local vars
This commit is contained in:
parent
a5fdde8420
commit
7ffc65a08a
@ -9,15 +9,15 @@ termux_step_configure () {
|
|||||||
termux_setup_cmake
|
termux_setup_cmake
|
||||||
|
|
||||||
if [ "$TERMUX_ARCH" = "arm" ]; then
|
if [ "$TERMUX_ARCH" = "arm" ]; then
|
||||||
TRIPLE="armv7-linux-androideabi"
|
local triple="armv7-linux-androideabi"
|
||||||
else
|
else
|
||||||
TRIPLE="$TERMUX_HOST_PLATFORM"
|
local triple="$TERMUX_HOST_PLATFORM"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
sed "s%\\@TERMUX_PREFIX\\@%$TERMUX_PREFIX%g" \
|
sed "s%\\@TERMUX_PREFIX\\@%$TERMUX_PREFIX%g" \
|
||||||
$TERMUX_PKG_BUILDER_DIR/config.toml \
|
$TERMUX_PKG_BUILDER_DIR/config.toml \
|
||||||
| sed "s%\\@TERMUX_STANDALONE_TOOLCHAIN\\@%$TERMUX_STANDALONE_TOOLCHAIN%g" \
|
| sed "s%\\@TERMUX_STANDALONE_TOOLCHAIN\\@%$TERMUX_STANDALONE_TOOLCHAIN%g" \
|
||||||
| sed "s%\\@TRIPLE\\@%$TRIPLE%g" \
|
| sed "s%\\@triple\\@%$triple%g" \
|
||||||
> config.toml
|
> config.toml
|
||||||
|
|
||||||
export LD_LIBRARY_PATH=$TERMUX_PKG_BUILDDIR/build/x86_64-unknown-linux-gnu/llvm/lib
|
export LD_LIBRARY_PATH=$TERMUX_PKG_BUILDDIR/build/x86_64-unknown-linux-gnu/llvm/lib
|
||||||
|
@ -2,8 +2,8 @@
|
|||||||
link-shared = true
|
link-shared = true
|
||||||
|
|
||||||
[build]
|
[build]
|
||||||
host = ["@TRIPLE@"]
|
host = ["@triple@"]
|
||||||
target = ["@TRIPLE@"]
|
target = ["@triple@"]
|
||||||
|
|
||||||
python = "python2.7"
|
python = "python2.7"
|
||||||
extended = true
|
extended = true
|
||||||
@ -25,7 +25,7 @@ channel = "stable"
|
|||||||
|
|
||||||
rpath = false
|
rpath = false
|
||||||
|
|
||||||
[target.@TRIPLE@]
|
[target.@triple@]
|
||||||
android-ndk = "@TERMUX_STANDALONE_TOOLCHAIN@"
|
android-ndk = "@TERMUX_STANDALONE_TOOLCHAIN@"
|
||||||
llvm-config = "@TERMUX_PREFIX@/bin/llvm-config"
|
llvm-config = "@TERMUX_PREFIX@/bin/llvm-config"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user