mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-09 01:45:36 +08:00
use system cc
This commit is contained in:
@@ -73,9 +73,9 @@ class PkgConfig extends CustomPackage
|
|||||||
'PKG_CONFIG_PATH' => BUILD_ROOT_PATH . '/lib/pkgconfig',
|
'PKG_CONFIG_PATH' => BUILD_ROOT_PATH . '/lib/pkgconfig',
|
||||||
];
|
];
|
||||||
$shell = shell()->appendEnv($env)->cd($srcdir);
|
$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("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('make -j' . (getenv('SPC_CONCURRENCY') ?: '1'));
|
$shell->exec('CC=cc make -j' . (getenv('SPC_CONCURRENCY') ?: '1'));
|
||||||
$shell->exec('make install-exec');
|
$shell->exec('CC=cc make install-exec');
|
||||||
if (is_file($bin)) {
|
if (is_file($bin)) {
|
||||||
@shell()->exec('strip ' . $bin);
|
@shell()->exec('strip ' . $bin);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user