From c8ad668ea4af988fe27c7d1d26fa88cac9e2834d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89rico=20Nogueira?= Date: Thu, 15 Apr 2021 23:13:49 -0300 Subject: [PATCH] kodi: fix build on 32-bit builders. ld was running out of memory at link time. Since we are here, set LDFLAGS initially instead of adding to it. --- srcpkgs/kodi/template | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/srcpkgs/kodi/template b/srcpkgs/kodi/template index e6437d6d69..8bb2a29657 100644 --- a/srcpkgs/kodi/template +++ b/srcpkgs/kodi/template @@ -34,7 +34,11 @@ skip_extraction="crossguid-8f399e8bd4.tar.gz libdvdcss-1.4.2-Leia-Beta-5.tar.gz libdvdread-6.0.0-Leia-Alpha-3.tar.gz libdvdnav-6.0.0-Leia-Alpha-3.tar.gz" python_version=3 patch_args="-Np1" -LDFLAGS+=" -Wl,-z,stack-size=1048576" +LDFLAGS="-Wl,-z,stack-size=1048576" + +if [ "$XBPS_WORDSIZE" = 32 ]; then + LDFLAGS+=" -Wl,--no-keep-memory" +fi lib32disabled=yes archs="i686* x86_64* aarch64*