mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-19 13:24:51 +08:00
use system cc
This commit is contained in:
parent
694fd2f1e0
commit
2551772de4
@ -73,9 +73,9 @@ class PkgConfig extends CustomPackage
|
||||
'PKG_CONFIG_PATH' => BUILD_ROOT_PATH . '/lib/pkgconfig',
|
||||
];
|
||||
$shell = shell()->appendEnv($env)->cd($srcdir);
|
||||
$shell->exec("./configure --prefix='{$prefix}' --with-internal-glib --disable-host-tool --without-sysroot --without-system-include-path --without-system-library-path --without-pc-path");
|
||||
$shell->exec('make -j' . (getenv('SPC_CONCURRENCY') ?: '1'));
|
||||
$shell->exec('make install-exec');
|
||||
$shell->exec("CC=cc ./configure --prefix='{$prefix}' --with-internal-glib --disable-host-tool --without-sysroot --without-system-include-path --without-system-library-path --without-pc-path");
|
||||
$shell->exec('CC=cc make -j' . (getenv('SPC_CONCURRENCY') ?: '1'));
|
||||
$shell->exec('CC=cc make install-exec');
|
||||
if (is_file($bin)) {
|
||||
@shell()->exec('strip ' . $bin);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user