From c4440668bbc5786b3ed36a87953f40140c382b9e Mon Sep 17 00:00:00 2001 From: henderkes Date: Mon, 6 Oct 2025 21:28:57 +0200 Subject: [PATCH] make sure -DFRONTEND is used --- src/SPC/builder/unix/library/postgresql.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/SPC/builder/unix/library/postgresql.php b/src/SPC/builder/unix/library/postgresql.php index 0a3489a1..ae5e35f3 100644 --- a/src/SPC/builder/unix/library/postgresql.php +++ b/src/SPC/builder/unix/library/postgresql.php @@ -56,7 +56,7 @@ trait postgresql if ($this->builder->getLib('icu')) { $libcpp = $this instanceof LinuxLibraryBase ? ' -lstdc++' : ' -lc++'; } - $envs .= " LIBS=\"{$libs}{$libcpp}\" "; + $envs .= " LIBS=\"{$libs} {$libs}{$libcpp}\" "; // macOS doesn't understand how to link properly } if ($error_exec_cnt > 0) { throw new BuildFailureException('Failed to get pkg-config information!'); @@ -74,7 +74,7 @@ trait postgresql FileSystem::replaceFileStr( $this->source_dir . '/src/common/Makefile', '$(OBJS_FRONTEND): CPPFLAGS += -DUSE_PRIVATE_ENCODING_FUNCS', - '$(OBJS_FRONTEND): CPPFLAGS += -UUSE_PRIVATE_ENCODING_FUNCS', + '$(OBJS_FRONTEND): CPPFLAGS += -UUSE_PRIVATE_ENCODING_FUNCS -DFRONTEND', ); // configure