From 91db75a361bcd16f396979cfc650c82178749ab1 Mon Sep 17 00:00:00 2001 From: Schrijvers Luc Date: Fri, 29 Aug 2025 07:44:07 +0200 Subject: [PATCH] postgresql, disable spinlocks for riscv64, try to fix building (#12843) --- dev-db/postgresql/postgresql-9.6.10.recipe | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/dev-db/postgresql/postgresql-9.6.10.recipe b/dev-db/postgresql/postgresql-9.6.10.recipe index 746f22a5f..172cedf5f 100644 --- a/dev-db/postgresql/postgresql-9.6.10.recipe +++ b/dev-db/postgresql/postgresql-9.6.10.recipe @@ -117,9 +117,13 @@ BUILD_PREREQUIRES=" cmd:pkg_config$secondaryArchSuffix " +if [ "$targetArchitecture" = riscv64 ]; then + spinlocks="--disable-spinlocks" +fi + BUILD() { - CFLAGS="-D_BSD_SOURCE -O2" runConfigure ./configure + CFLAGS="-D_BSD_SOURCE -O2" runConfigure ./configure $spinlocks make $jobArgs }