mirror of
https://github.com/termux/termux-packages.git
synced 2025-05-09 21:35:36 +00:00
14 lines
242 B
Bash
14 lines
242 B
Bash
#!@TERMUX_PREFIX@/bin/bash
|
|
|
|
set -e
|
|
|
|
RT_PATH="@TERMUX_PREFIX@/lib/clang/@LLVM_MAJOR_VERSION@/lib/linux"
|
|
|
|
sort -r | while read -r lib; do
|
|
if [[ -f ${lib} ]]; then
|
|
ln -sf "/${lib}" "${RT_PATH}"
|
|
else
|
|
rm -fr "${RT_PATH}/${lib##*/}"
|
|
fi
|
|
done
|