mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-18 12:54:52 +08:00
fix libsodium with -fPIC too
This commit is contained in:
parent
2897fdda04
commit
03b634b961
@ -9,10 +9,15 @@ trait libsodium
|
|||||||
protected function build(): void
|
protected function build(): void
|
||||||
{
|
{
|
||||||
shell()->cd($this->source_dir)
|
shell()->cd($this->source_dir)
|
||||||
->exec('./configure --enable-static --disable-shared --prefix=')
|
->setEnv([
|
||||||
->exec('make clean')
|
'CFLAGS' => $this->getLibExtraCFlags(),
|
||||||
->exec("make -j{$this->builder->concurrency}")
|
'LDFLAGS' => $this->getLibExtraLdFlags(),
|
||||||
->exec('make install DESTDIR=' . BUILD_ROOT_PATH);
|
'LIBS' => $this->getLibExtraLibs(),
|
||||||
|
])
|
||||||
|
->execWithEnv('./configure --with-pic --enable-static --disable-shared --prefix=')
|
||||||
|
->execWithEnv('make clean')
|
||||||
|
->execWithEnv("make -j{$this->builder->concurrency}")
|
||||||
|
->execWithEnv('make install DESTDIR=' . BUILD_ROOT_PATH);
|
||||||
|
|
||||||
$this->patchPkgconfPrefix(['libsodium.pc'], PKGCONF_PATCH_PREFIX);
|
$this->patchPkgconfPrefix(['libsodium.pc'], PKGCONF_PATCH_PREFIX);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user