build-package.sh: export CC_FOR_BUILD for on-device builds

Required by some packages.
This commit is contained in:
Leonid Pliushch 2019-08-10 17:28:08 +03:00
parent 2e2f125476
commit 48d257989a

View File

@ -23,6 +23,7 @@ termux_step_setup_toolchain() {
CCTERMUX_HOST_PLATFORM=armv7a-linux-androideabi$TERMUX_PKG_API_LEVEL CCTERMUX_HOST_PLATFORM=armv7a-linux-androideabi$TERMUX_PKG_API_LEVEL
fi fi
else else
export CC_FOR_BUILD=$CC
# Some build scripts use environment variable 'PKG_CONFIG', so # Some build scripts use environment variable 'PKG_CONFIG', so
# using this for on-device builds too. # using this for on-device builds too.
export PKG_CONFIG=pkg-config export PKG_CONFIG=pkg-config