From dc033aefefda63bbe25c99c5d34ecbbdccdefb52 Mon Sep 17 00:00:00 2001 From: Henrik Grimler Date: Tue, 5 Apr 2022 21:21:29 +0200 Subject: [PATCH] termux_step_massage: only check for missing symbols if there are libraries --- scripts/build/termux_step_massage.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/build/termux_step_massage.sh b/scripts/build/termux_step_massage.sh index bb6879095..34e0fe3b5 100644 --- a/scripts/build/termux_step_massage.sh +++ b/scripts/build/termux_step_massage.sh @@ -81,7 +81,10 @@ termux_step_massage() { # 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}')" - LIBRARIES="$(find lib -name "*.so")" + LIBRARIES="" + if [ -d "lib" ]; then + LIBRARIES="$(find lib -name "*.so")" + fi for lib in $LIBRARIES; do for sym in $SYMBOLS; do if ! readelf -h $lib &> /dev/null; then