mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-17 20:34:51 +08:00
make sure -DFRONTEND is used
This commit is contained in:
parent
0f2d2d5734
commit
c4440668bb
@ -56,7 +56,7 @@ trait postgresql
|
|||||||
if ($this->builder->getLib('icu')) {
|
if ($this->builder->getLib('icu')) {
|
||||||
$libcpp = $this instanceof LinuxLibraryBase ? ' -lstdc++' : ' -lc++';
|
$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) {
|
if ($error_exec_cnt > 0) {
|
||||||
throw new BuildFailureException('Failed to get pkg-config information!');
|
throw new BuildFailureException('Failed to get pkg-config information!');
|
||||||
@ -74,7 +74,7 @@ trait postgresql
|
|||||||
FileSystem::replaceFileStr(
|
FileSystem::replaceFileStr(
|
||||||
$this->source_dir . '/src/common/Makefile',
|
$this->source_dir . '/src/common/Makefile',
|
||||||
'$(OBJS_FRONTEND): CPPFLAGS += -DUSE_PRIVATE_ENCODING_FUNCS',
|
'$(OBJS_FRONTEND): CPPFLAGS += -DUSE_PRIVATE_ENCODING_FUNCS',
|
||||||
'$(OBJS_FRONTEND): CPPFLAGS += -UUSE_PRIVATE_ENCODING_FUNCS',
|
'$(OBJS_FRONTEND): CPPFLAGS += -UUSE_PRIVATE_ENCODING_FUNCS -DFRONTEND',
|
||||||
);
|
);
|
||||||
|
|
||||||
// configure
|
// configure
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user