use system cc

This commit is contained in:
DubbleClick 2025-08-27 16:34:29 +07:00
parent 694fd2f1e0
commit 2551772de4

View File

@ -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);
}