debian/scripts/ld-musl-config
raw| 1 | #!/bin/sh |
| 2 | for DIR in $(find /etc -maxdepth 1 -type d -name "ld-musl-*.d") |
| 3 | do |
| 4 | ARCH=$(echo $DIR | sed 's@/etc/ld-musl-@@g' | sed '[email protected]@@g') |
| 5 | VALID_ARCH=0 |
| 6 | case ${ARCH} in |
| 7 | aarch64|arm|armhf|amd64|i386|loongarch64|mips|mipsel|mips64el|powerpc64le|riscv64|s390x|sh) |
| 8 | VALID_ARCH=1 |
| 9 | ;; |
| 10 | esac |
| 11 | if [ $VALID_ARCH==1 ] |
| 12 | then |
| 13 | grep -s -v '^#\|^$' /etc/ld-musl-$ARCH.d/* | sort -u > /etc/ld-musl-$ARCH.path |
| 14 | fi |
| 15 | done |