mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-19 05:14:52 +08:00
add -static linker flag to libicu compilation
This commit is contained in:
parent
64dfb57366
commit
a7265bf624
@ -10,11 +10,13 @@ class icu extends LinuxLibraryBase
|
|||||||
|
|
||||||
protected function build(): void
|
protected function build(): void
|
||||||
{
|
{
|
||||||
$root = BUILD_ROOT_PATH;
|
$cppflags = 'CPPFLAGS="-DU_CHARSET_IS_UTF8=1 -DU_USING_ICU_NAMESPACE=1 -DU_STATIC_IMPLEMENTATION=1"';
|
||||||
$cppflag = 'CPPFLAGS="-DU_CHARSET_IS_UTF8=1 -DU_USING_ICU_NAMESPACE=1 -DU_STATIC_IMPLEMENTATION=1"';
|
$cxxflags = 'CXXFLAGS="-std=c++11"';
|
||||||
|
$ldflags = 'LDFLAGS="-static"';
|
||||||
shell()->cd($this->source_dir . '/source')
|
shell()->cd($this->source_dir . '/source')
|
||||||
->exec(
|
->exec(
|
||||||
"{$this->builder->configure_env} {$cppflag} ./runConfigureICU Linux " .
|
"{$this->builder->configure_env} {$cppflags} {$cxxflags} {$ldflags} " .
|
||||||
|
'./runConfigureICU Linux ' .
|
||||||
'--enable-static ' .
|
'--enable-static ' .
|
||||||
'--disable-shared ' .
|
'--disable-shared ' .
|
||||||
'--with-data-packaging=static ' .
|
'--with-data-packaging=static ' .
|
||||||
@ -25,7 +27,7 @@ class icu extends LinuxLibraryBase
|
|||||||
'--enable-tools=yes ' .
|
'--enable-tools=yes ' .
|
||||||
'--enable-tests=no ' .
|
'--enable-tests=no ' .
|
||||||
'--enable-samples=no ' .
|
'--enable-samples=no ' .
|
||||||
"--prefix={$root}"
|
'--prefix=' . BUILD_ROOT_PATH
|
||||||
)
|
)
|
||||||
->exec('make clean')
|
->exec('make clean')
|
||||||
->exec("make -j{$this->builder->concurrency}")
|
->exec("make -j{$this->builder->concurrency}")
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user