Mercurial > vanilla
changeset 428:ac093cd90702
core/efibootmgr: fix build with clang
author | David Demelier <markand@malikania.fr> |
---|---|
date | Thu, 04 Apr 2019 20:50:00 +0200 |
parents | 95095aa8fe3d |
children | f88f7c060f11 |
files | core/efibootmgr/efibootmgr.sh |
diffstat | 1 files changed, 5 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/core/efibootmgr/efibootmgr.sh Thu Apr 04 14:49:17 2019 +0200 +++ b/core/efibootmgr/efibootmgr.sh Thu Apr 04 20:50:00 2019 +0200 @@ -23,17 +23,20 @@ PKGDOWNLOAD="https://github.com/rhboot/$PKGNAME/archive/$PKGVERSION.tar.gz" PKGDEPENDS="core/gettext lib/efivar lib/popt" +: ${CC:=clang} + build() { rm -rf $PKGNAME-$PKGVERSION tar xvaf $PKGVERSION.tar.gz pushd $PKGNAME-$PKGVERSION - # credits to alpine linux. + # https://github.com/rhboot/efibootmgr/pull/96 + patch -p0 < ../clang.patch # https://git.alpinelinux.org/aports/tree/testing/efibootmgr?h=master patch -p1 < ../efivar.patch patch -p1 < ../musl-gettext.patch - PCDIR=/usr/lib/pkgconfig EFIDIR=/boot/efi make + CC="$CC" PCDIR=/usr/lib/pkgconfig EFIDIR=/boot/efi make EFIDIR=/boot/efi DESTDIR=$DESTDIR make install popd