From 17a25b44e280def78a2a5b23dfecf5c35754510f Mon Sep 17 00:00:00 2001 From: henderkes Date: Mon, 6 Oct 2025 22:26:00 +0200 Subject: [PATCH] attempt fix for aarch64 #2 --- src/SPC/builder/unix/library/postgresql.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/SPC/builder/unix/library/postgresql.php b/src/SPC/builder/unix/library/postgresql.php index 1c492665..476c055d 100644 --- a/src/SPC/builder/unix/library/postgresql.php +++ b/src/SPC/builder/unix/library/postgresql.php @@ -14,6 +14,11 @@ trait postgresql public function patchBeforeBuild(): bool { if (SPCTarget::getLibcVersion() === '2.17' && GNU_ARCH === 'aarch64') { + FileSystem::replaceFileStr( + $this->source_dir . '/src/port/pg_popcount_aarch64.c', + 'value & HWCAP_SVE', + 'value & 0', + ); FileSystem::replaceFileStr( $this->source_dir . '/src/port/pg_crc32c_armv8_choose.c', '#if defined(__linux__) && !defined(__aarch64__) && !defined(HWCAP2_CRC32)',