Date: Tuesday, May 2, 2023 @ 20:44:08
  Author: dvzrv
Revision: 476357

upgpkg: gnu-efi 3.0.17-1: Upgrade to 3.0.17.

Use LDFLAGS in such a way that they can be used by ld directly: 
https://sourceforge.net/p/gnu-efi/bugs/33

Modified:
  gnu-efi/trunk/PKGBUILD

----------+
 PKGBUILD |   16 +++++++---------
 1 file changed, 7 insertions(+), 9 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2023-05-02 17:37:09 UTC (rev 476356)
+++ PKGBUILD    2023-05-02 20:44:08 UTC (rev 476357)
@@ -1,8 +1,8 @@
 # Maintainer: David Runge <[email protected]>
 
 pkgname=gnu-efi
-pkgver=3.0.15
-pkgrel=3
+pkgver=3.0.17
+pkgrel=1
 pkgdesc="Develop EFI applications using the GNU toolchain and the EFI 
development environment"
 arch=(x86_64)
 url="https://sourceforge.net/projects/gnu-efi/";
@@ -12,8 +12,8 @@
 replaces=(gnu-efi-libs)
 source=(https://download.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.bz2)
 options=(!strip)
-sha512sums=('64d408b6d115bdc6eebae12fbd6cd907ed5f847f54e506c1e8f8ea5de38a95cf6fac66ab1009bd1d0bd2d54ad45ad598d29bcc303926a5899bf5cc25448cbb2f')
-b2sums=('0df93d8cacfa1e6d4b7731e32287d4386da9375c5e5c5847df8a29c99d70f5c24b14abc5e44ab9d0a39a6ec96682eb2b5e84d81a5a142d44a50a522a4ae0e3c2')
+sha512sums=('0893ca234272584f889b1ae1c75341a9ceee60acfd32765daa5d704191ba00450536a287b949304c6d055d1bf125cc29e24fc41df8e5230e0da4f9d944876512')
+b2sums=('27f8171b411a6a8a138d44d91c7e4e4291aa399562825d51a398913572119482ffeb303d7508ae13eacd2cd10b8f5098405ab16eb56243587efe93235f661285')
 
 prepare() {
   # -Werror, not even once
@@ -27,20 +27,18 @@
   # be architecture optmized
   # NOTE: fat-lto-objects is required for non-mangled (static) object files
   CFLAGS="-O2 -flto -ffat-lto-objects"
+  # upstream provides LDFLAGS directly to ld: 
https://sourceforge.net/p/gnu-efi/bugs/33/
+  LDFLAGS="${LDFLAGS//-Wl/}"
+  LDFLAGS="${LDFLAGS//,/ }"
   make
   make -C lib
   make -C gnuefi
   make -C inc
-  # unset LDFLAGS for custom linker used in apps, as we have patched our
-  # LDFLAGS in manually in prepare()
-  LDFLAGS=""
   make -C apps
 }
 
 package() {
   cd $pkgname-$pkgver
-  # not quite sure why CFLAGS gets reset
-  CFLAGS="-O2 -flto -ffat-lto-objects"
   make INSTALLROOT="$pkgdir" PREFIX=/usr install
   install -vDm 644 apps/*.efi -t "$pkgdir/usr/share/$pkgname/apps/$CARCH/"
   install -vDm 644 README.efilib -t "$pkgdir/usr/share/licenses/$pkgname/"

Reply via email to