Browse Source

termux_step_setup_toolchain: skip running termux-elf-cleaner

Running termux-elf-cleaner before strip might break libraries:
https://github.com/termux/termux-packages/issues/3990#issuecomment-507618608
android-5
Henrik Grimler 5 years ago
committed by Leonid Plyushch
parent
commit
c2f57de29e
  1. 2
      scripts/build/termux_step_setup_toolchain.sh

2
scripts/build/termux_step_setup_toolchain.sh

@ -158,8 +158,6 @@ termux_step_setup_toolchain() {
sed -i "s/define __ANDROID_API__ __ANDROID_API_FUTURE__/define __ANDROID_API__ $TERMUX_PKG_API_LEVEL/" \
usr/include/android/api-level.h
$TERMUX_ELF_CLEANER usr/lib/*/*/*.so usr/lib/*/*.so
grep -lrw $_TERMUX_TOOLCHAIN_TMPDIR/sysroot/usr/include/c++/v1 -e '<version>' | xargs -n 1 sed -i 's/<version>/\"version\"/g'
mv $_TERMUX_TOOLCHAIN_TMPDIR $TERMUX_STANDALONE_TOOLCHAIN
fi

Loading…
Cancel
Save