From 6a7e9cad7640c74f05398e2d2c92386312748d9e Mon Sep 17 00:00:00 2001 From: Eli Schwartz Date: Tue, 13 Apr 2021 08:10:38 -0400 Subject: upgpkg: pacman-static 5.2.2-5 Make bz2 actually use the musl-gcc compiler. Before it was using regular gcc, which should not work (but sometimes did, mysteriously, on my machine). Because the bz2 Makefile does not respect environment $CC. --- PKGBUILD | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'PKGBUILD') diff --git a/PKGBUILD b/PKGBUILD index 62f1132..013a1ab 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -16,7 +16,7 @@ _libarchive_ver=3.5.1 _gpgerrorver=1.42 _libassuanver=2.5.5 _gpgmever=1.15.1 -pkgrel=4 +pkgrel=5 pkgdesc="Statically-compiled pacman (to fix or install systems without libc)" arch=('i686' 'x86_64' 'arm' 'armv6h' 'armv7h' 'aarch64') url="https://www.archlinux.org/pacman/" @@ -178,7 +178,7 @@ build() { # bzip2 cd "${srcdir}"/bzip2-${_bzipver} - sed -i "s|-O2|${CFLAGS}|g" Makefile + sed -i "s|-O2|${CFLAGS}|g;s|CC=gcc|CC=${CC}|g" Makefile make libbz2.a install -Dvm644 bzlib.h "${srcdir}"/temp/usr/include/ install -Dvm644 libbz2.a "${srcdir}"/temp/usr/lib/ -- cgit v1.2.3-70-g09d2