musl-bootstrap: fix musl-gcc with cc alternative set to clang
This commit is contained in:
parent
b6b881aaf8
commit
4f50d3a3c7
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue