musl-bootstrap: fix musl-gcc with cc alternative set to clang

This commit is contained in:
Michael Gehring 2018-10-19 15:37:24 +00:00 committed by Enno Boland
parent b6b881aaf8
commit 4f50d3a3c7

View file

@ -1,7 +1,7 @@
# Template file for 'musl-bootstrap'.
pkgname=musl-bootstrap
version=1.1.20
revision=1
revision=2
lib32disabled=yes
wrksrc="musl-${version}"
build_style=configure
@ -18,6 +18,8 @@ checksum=44be8771d0e6c6b5f82dd15662eb2957c9a3173a19a8b49966ac0542bbd40d61
post_install() {
mv ${DESTDIR}/lib/* ${DESTDIR}/usr/lib/
vmkdir usr/bin
# cc is an alternative and might actually be clang
sed -i s/REALGCC:-cc/REALGCC:-gcc/ ${DESTDIR}/usr/lib/musl/bin/musl-gcc
ln -sfr ${DESTDIR}/usr/lib/musl/bin/musl-gcc ${DESTDIR}/usr/bin/musl-gcc
ln -sfr ${DESTDIR}/usr/lib/musl/bin/musl-clang ${DESTDIR}/usr/bin/musl-clang
ln -sfr ${DESTDIR}/usr/lib/musl/bin/ld.musl-clang ${DESTDIR}/usr/bin/ld.musl-clang