proot: needs musl-legacy-compat for *-musl targets

This commit is contained in:
Jürgen Buchmüller 2020-01-25 15:55:26 +01:00
parent ccfcf21b11
commit 4b65869021
1 changed files with 4 additions and 0 deletions

View File

@ -14,6 +14,10 @@ homepage="https://proot-me.github.io"
distfiles="https://github.com/proot-me/PRoot/archive/v${version}.tar.gz"
checksum=ce0a3baca8312613bd10f65bb436a3aaa28e1034f498a22c35ad0693600e01dd
if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
makedepends+=" musl-legacy-compat"
fi
pre_build() {
# Fix glibc ptrace.h specific constants for musl libc
cp ${FILESDIR}/ptrace_compat.h .