From 7ae570f65ce7de8986870059437342ea89f81d57 Mon Sep 17 00:00:00 2001 From: q66 Date: Sun, 24 Jul 2022 23:34:16 +0200 Subject: [PATCH] OpenRCT2: enforce 64-bit long double This is a workaround for IBM long double not allowing for constant expressions. --- srcpkgs/OpenRCT2/template | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/srcpkgs/OpenRCT2/template b/srcpkgs/OpenRCT2/template index a4306c75def..3c025487bc6 100644 --- a/srcpkgs/OpenRCT2/template +++ b/srcpkgs/OpenRCT2/template @@ -52,6 +52,13 @@ if [ "$XBPS_TARGET_ENDIAN" = "be" ]; then broken="not yet implemented" fi +case "$XBPS_TARGET_MACHINE" in + ppc*) + CFLAGS+=" -mlong-double-64" + CXXFLAGS+=" -mlong-double-64" + ;; +esac + if [ "$CROSS_BUILD" ]; then hostmakedepends+=" OpenRCT2" # for icu mass-rebuild