fix(musl)

This commit is contained in:
Jacob Heider 2023-04-14 14:04:44 -04:00
parent cb6743d374
commit f3f523834f
No known key found for this signature in database
GPG key ID: A98011B5713535BF

View file

@ -21,16 +21,16 @@ build:
# musl is linux only, so just make passthrough scripts on Darwin
if test {{ hw.platform }} != "linux"
then
mkdir {{ prefix }}/bin
cat > {{ prefix }}/ld.musl-clang <<EOF
mkdir -p "{{ prefix }}/bin"
cat > {{ prefix }}/bin/ld.musl-clang <<EOF
#!/bin/sh
exec ld "$@"
EOF
cat > {{ prefix }}/musl-clang <<EOF
cat > {{ prefix }}/bin/musl-clang <<EOF
#!/bin/sh
exec cc "$@"
EOF
chmod +x {{ prefix }}/ld.musl-clang {{ prefix }}/musl-clang
chmod +x {{ prefix }}/bin/ld.musl-clang {{ prefix }}/bin/musl-clang
exit
fi