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)',