Mercurial > vanilla
comparison 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 |
comparison
equal
deleted
inserted
replaced
692:76cc67d978d9 | 693:32bb756ea9c9 |
---|---|
19 PKGVERSION=1.1.21 | 19 PKGVERSION=1.1.21 |
20 PKGREVISION=1 | 20 PKGREVISION=1 |
21 PKGLICENSE="MIT" | 21 PKGLICENSE="MIT" |
22 PKGSUMMARY="a new lightweight, fast, simple, free and correct C library" | 22 PKGSUMMARY="a new lightweight, fast, simple, free and correct C library" |
23 PKGDOWNLOAD="https://www.musl-libc.org/releases/$PKGNAME-$PKGVERSION.tar.gz" | 23 PKGDOWNLOAD="https://www.musl-libc.org/releases/$PKGNAME-$PKGVERSION.tar.gz" |
24 PKGDEPENDS="lib/linux-headers" | 24 PKGDEPENDS="lib/linux-headers:build" |
25 | |
26 : ${CC:=clang} | |
27 : ${CFLAGS:=-O2} | |
25 | 28 |
26 build() | 29 build() |
27 { | 30 { |
28 rm -rf $PKGNAME-$PKGVERSION | 31 rm -rf $PKGNAME-$PKGVERSION |
29 tar xvf $PKGNAME-$PKGVERSION.tar.gz | 32 tar xvf $PKGNAME-$PKGVERSION.tar.gz |
30 cd $PKGNAME-$PKGVERSION | 33 cd $PKGNAME-$PKGVERSION |
31 | 34 |
35 CC="$CC" \ | |
36 CFLAGS="$CFLAGS" \ | |
32 ./configure --prefix= --disable-static | 37 ./configure --prefix= --disable-static |
33 make | 38 make |
34 make install DESTDIR=$DESTDIR | 39 make install DESTDIR=$DESTDIR |
35 | 40 |
36 cd .. | 41 cd .. |