From 9ee623112d3baf9dccc992bc625c157d6b79714e Mon Sep 17 00:00:00 2001 From: henderkes Date: Mon, 6 Oct 2025 22:43:03 +0200 Subject: [PATCH] attempt to fix macOS? --- src/SPC/builder/unix/library/postgresql.php | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/SPC/builder/unix/library/postgresql.php b/src/SPC/builder/unix/library/postgresql.php index adf04773..46973ef5 100644 --- a/src/SPC/builder/unix/library/postgresql.php +++ b/src/SPC/builder/unix/library/postgresql.php @@ -103,7 +103,7 @@ trait postgresql } // configure - shell()->cd($this->source_dir . '/build')->initializeEnv($this) + $shell = shell()->cd($this->source_dir . '/build')->initializeEnv($this) ->appendEnv($env) ->exec( "{$envs} ../configure " . @@ -122,7 +122,13 @@ trait postgresql '--without-pam ' . '--without-bonjour ' . '--without-tcl ' - ) + ); + + if (SPCTarget::getTargetOS() === 'Darwin') { + FileSystem::replaceFileStr($this->source_dir . '/build/src/Makefile.global', '-lldap', '-lldap -llber'); + } + + $shell ->exec($envs . ' make -C src/bin/pg_config install') ->exec($envs . ' make -C src/include install') ->exec($envs . ' make -C src/common install')