From 48d257989aeffa8be0bd47829eaa82e72e0a27ed Mon Sep 17 00:00:00 2001 From: Leonid Pliushch Date: Sat, 10 Aug 2019 17:28:08 +0300 Subject: [PATCH] build-package.sh: export CC_FOR_BUILD for on-device builds Required by some packages. --- scripts/build/termux_step_setup_toolchain.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/build/termux_step_setup_toolchain.sh b/scripts/build/termux_step_setup_toolchain.sh index 7647987f0..dd6b1ea3b 100644 --- a/scripts/build/termux_step_setup_toolchain.sh +++ b/scripts/build/termux_step_setup_toolchain.sh @@ -23,6 +23,7 @@ termux_step_setup_toolchain() { CCTERMUX_HOST_PLATFORM=armv7a-linux-androideabi$TERMUX_PKG_API_LEVEL fi else + export CC_FOR_BUILD=$CC # Some build scripts use environment variable 'PKG_CONFIG', so # using this for on-device builds too. export PKG_CONFIG=pkg-config