Skip to content

Commit 9ee6231

Browse files
committed
attempt to fix macOS?
1 parent d789b1a commit 9ee6231

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/SPC/builder/unix/library/postgresql.php

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ protected function build(): void
103103
}
104104

105105
// configure
106-
shell()->cd($this->source_dir . '/build')->initializeEnv($this)
106+
$shell = shell()->cd($this->source_dir . '/build')->initializeEnv($this)
107107
->appendEnv($env)
108108
->exec(
109109
"{$envs} ../configure " .
@@ -122,7 +122,13 @@ protected function build(): void
122122
'--without-pam ' .
123123
'--without-bonjour ' .
124124
'--without-tcl '
125-
)
125+
);
126+
127+
if (SPCTarget::getTargetOS() === 'Darwin') {
128+
FileSystem::replaceFileStr($this->source_dir . '/build/src/Makefile.global', '-lldap', '-lldap -llber');
129+
}
130+
131+
$shell
126132
->exec($envs . ' make -C src/bin/pg_config install')
127133
->exec($envs . ' make -C src/include install')
128134
->exec($envs . ' make -C src/common install')

0 commit comments

Comments
 (0)