We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 17a25b4 commit d789b1aCopy full SHA for d789b1a
src/SPC/builder/unix/library/postgresql.php
@@ -95,9 +95,16 @@ protected function build(): void
95
'$(OBJS_FRONTEND): CPPFLAGS += -UUSE_PRIVATE_ENCODING_FUNCS -DFRONTEND',
96
);
97
98
+ $env = [
99
+ 'CFLAGS' => $cflags,
100
+ ];
101
+ if ($ldLibraryPath = getenv('SPC_LD_LIBRARY_PATH')) {
102
+ $env['LD_LIBRARY_PATH'] = $ldLibraryPath;
103
+ }
104
+
105
// configure
106
shell()->cd($this->source_dir . '/build')->initializeEnv($this)
- ->appendEnv(['CFLAGS' => $cflags])
107
+ ->appendEnv($env)
108
->exec(
109
"{$envs} ../configure " .
110
"--prefix={$builddir} " .
0 commit comments