termux_step_massage: only check for missing symbols if there are libraries

This commit is contained in:
Henrik Grimler 2022-04-05 21:21:29 +02:00
parent c9933a6296
commit dc033aefef
No known key found for this signature in database
GPG Key ID: B0076E490B71616B

View File

@ -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