Skip to content

Commit 2551772

Browse files
committed
use system cc
1 parent 694fd2f commit 2551772

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/SPC/store/pkg/PkgConfig.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,9 @@ public function extract(string $name): void
7373
'PKG_CONFIG_PATH' => BUILD_ROOT_PATH . '/lib/pkgconfig',
7474
];
7575
$shell = shell()->appendEnv($env)->cd($srcdir);
76-
$shell->exec("./configure --prefix='{$prefix}' --with-internal-glib --disable-host-tool --without-sysroot --without-system-include-path --without-system-library-path --without-pc-path");
77-
$shell->exec('make -j' . (getenv('SPC_CONCURRENCY') ?: '1'));
78-
$shell->exec('make install-exec');
76+
$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");
77+
$shell->exec('CC=cc make -j' . (getenv('SPC_CONCURRENCY') ?: '1'));
78+
$shell->exec('CC=cc make install-exec');
7979
if (is_file($bin)) {
8080
@shell()->exec('strip ' . $bin);
8181
}

0 commit comments

Comments
 (0)