Mercurial > vanilla
diff lib/musl/musl.sh @ 693:32bb756ea9c9
lib/musl: build with clang
author | David Demelier <markand@malikania.fr> |
---|---|
date | Thu, 01 Aug 2019 21:15:00 +0200 |
parents | 25cecc6dca48 |
children | 59a2fa6992bc |
line wrap: on
line diff
--- a/lib/musl/musl.sh Thu Aug 01 21:10:00 2019 +0200 +++ b/lib/musl/musl.sh Thu Aug 01 21:15:00 2019 +0200 @@ -21,7 +21,10 @@ PKGLICENSE="MIT" PKGSUMMARY="a new lightweight, fast, simple, free and correct C library" PKGDOWNLOAD="https://www.musl-libc.org/releases/$PKGNAME-$PKGVERSION.tar.gz" -PKGDEPENDS="lib/linux-headers" +PKGDEPENDS="lib/linux-headers:build" + +: ${CC:=clang} +: ${CFLAGS:=-O2} build() { @@ -29,6 +32,8 @@ tar xvf $PKGNAME-$PKGVERSION.tar.gz cd $PKGNAME-$PKGVERSION + CC="$CC" \ + CFLAGS="$CFLAGS" \ ./configure --prefix= --disable-static make make install DESTDIR=$DESTDIR