From 4a6d0148fec16179b6c20d91d76b97c3eb3885b9 Mon Sep 17 00:00:00 2001 From: its-pointless Date: Tue, 1 Jan 2019 12:37:08 +1100 Subject: [PATCH] fix for 32bit builds with clippy... --- packages/rust/build.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/rust/build.sh b/packages/rust/build.sh index be6910eaa..6c478c810 100644 --- a/packages/rust/build.sh +++ b/packages/rust/build.sh @@ -5,7 +5,6 @@ TERMUX_PKG_VERSION=1.31.1 TERMUX_PKG_SHA256=b38f6a1b5e12619f242e44ea494d177c72fd1f80160386b2e69b69446685fcfa TERMUX_PKG_SRCURL=https://static.rust-lang.org/dist/rustc-$TERMUX_PKG_VERSION-src.tar.xz TERMUX_PKG_DEPENDS="clang, openssl, lld" -# TERMUX_PKG_BLACKLISTED_ARCHES="arm" termux_step_configure () { termux_setup_cmake @@ -32,7 +31,9 @@ termux_step_configure () { export ${env_host}_OPENSSL_DIR=$TERMUX_PREFIX export X86_64_UNKNOWN_LINUX_GNU_OPENSSL_LIB_DIR=/usr/lib/x86_64-linux-gnu export X86_64_UNKNOWN_LINUX_GNU_OPENSSL_INCLUDE_DIR=/usr/include - + # for backtrace-sys + export CC_x86_64_unknown_linux_gnu=gcc + export CFLAGS_x86_64_unknown_linux_gnu="-O2" unset CC CXX CPP LD CFLAGS CXXFLAGS CPPFLAGS LDFLAGS PKG_CONFIG }