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 }