Date: Wednesday, May 3, 2023 @ 07:19:12 Author: dvzrv Revision: 476371
upgpkg: gnu-efi 3.0.17-2: Rebuild to minimize CFLAGS. Using LTO is problematic for linking later (e.g. using refind): https://bugs.archlinux.org/task/75731 Modified: gnu-efi/trunk/PKGBUILD ----------+ PKGBUILD | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2023-05-03 06:47:27 UTC (rev 476370) +++ PKGBUILD 2023-05-03 07:19:12 UTC (rev 476371) @@ -2,7 +2,7 @@ pkgname=gnu-efi pkgver=3.0.17 -pkgrel=1 +pkgrel=2 pkgdesc="Develop EFI applications using the GNU toolchain and the EFI development environment" arch=(x86_64) url="https://sourceforge.net/projects/gnu-efi/" @@ -11,7 +11,7 @@ provides=(gnu-efi-libs) replaces=(gnu-efi-libs) source=(https://download.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.bz2) -options=(!strip) +options=(!lto !strip) sha512sums=('0893ca234272584f889b1ae1c75341a9ceee60acfd32765daa5d704191ba00450536a287b949304c6d055d1bf125cc29e24fc41df8e5230e0da4f9d944876512') b2sums=('27f8171b411a6a8a138d44d91c7e4e4291aa399562825d51a398913572119482ffeb303d7508ae13eacd2cd10b8f5098405ab16eb56243587efe93235f661285') @@ -25,8 +25,7 @@ # NOTE: apply only minimal CFLAGS, as gnu-efi does not provide userspace # libs, but may be used in unitialized machine state and should therefore not # be architecture optmized - # NOTE: fat-lto-objects is required for non-mangled (static) object files - CFLAGS="-O2 -flto -ffat-lto-objects" + CFLAGS="-O2" # upstream provides LDFLAGS directly to ld: https://sourceforge.net/p/gnu-efi/bugs/33/ LDFLAGS="${LDFLAGS//-Wl/}" LDFLAGS="${LDFLAGS//,/ }"
