From 32aba6f6bd2bc7d67d5c296c1cb966450dc5e6fb Mon Sep 17 00:00:00 2001 From: OscarL Date: Wed, 11 Jan 2023 17:08:35 -0300 Subject: [PATCH] links: fix build on x86 (32 bits). (#7764) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * links: fix build on x86 (32 bits). This seems to have been broken since the update to 2.28, as 2.21 is the last version available on the repositories. The fix avoids errors resulting from conflicting integer types between the and headers. Needed to also specify "-g -O2 -fopenmp" when defining CFLAGS to avoid linking errors (and to match the default flags used otherwise). None of this is necessary on x86_64, thus the conditional on "_x86". * links: use a better check to detect the "x86" target arch Co-authored-by: Jérôme Duval Co-authored-by: Jérôme Duval --- www-client/links/links-2.28.recipe | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/www-client/links/links-2.28.recipe b/www-client/links/links-2.28.recipe index 24a343767..699ad4629 100644 --- a/www-client/links/links-2.28.recipe +++ b/www-client/links/links-2.28.recipe @@ -77,12 +77,18 @@ defineDebugInfoPackage links$secondaryArchSuffix \ BUILD() { autoreconf -vfi + + if [ $effectiveTargetArchitecture == 'x86' ]; then + export CFLAGS="-DTIFF_DISABLE_DEPRECATED -g -O2 -fopenmp" + fi + runConfigure --omit-dirs binDir ./configure \ --bindir="$commandBinDir" \ --without-x \ --with-haiku \ --with-ssl \ --enable-graphics + make $jobArgs }