From ae7f540379cc276c1999ea475c5c5cec0857f6f3 Mon Sep 17 00:00:00 2001 From: Tee KOBAYASHI Date: Wed, 6 Apr 2022 13:25:05 +0900 Subject: [PATCH] termux_step_massage: Avoid using `CC` which may be unset. --- scripts/build/termux_step_massage.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/build/termux_step_massage.sh b/scripts/build/termux_step_massage.sh index 34e0fe3b5..9a32d0775 100644 --- a/scripts/build/termux_step_massage.sh +++ b/scripts/build/termux_step_massage.sh @@ -80,7 +80,7 @@ termux_step_massage() { fi # Check so that package is not affected by https://github.com/android/ndk/issues/1614 - SYMBOLS="$(readelf -s $($CC -print-libgcc-file-name) | grep "FUNC GLOBAL HIDDEN" | awk '{print $8}')" + SYMBOLS="$(readelf -s $($TERMUX_HOST_PLATFORM-clang -print-libgcc-file-name) | grep "FUNC GLOBAL HIDDEN" | awk '{print $8}')" LIBRARIES="" if [ -d "lib" ]; then LIBRARIES="$(find lib -name "*.so")"