From 24aac060512ff89a6bd5f886ad66171de2deb045 Mon Sep 17 00:00:00 2001 From: crazywhalecc Date: Tue, 1 Oct 2024 15:49:08 +0800 Subject: [PATCH] Overwrite compile variables for musl wrapper build --- src/SPC/doctor/item/LinuxMuslCheck.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/SPC/doctor/item/LinuxMuslCheck.php b/src/SPC/doctor/item/LinuxMuslCheck.php index e672ca20..6db69f39 100644 --- a/src/SPC/doctor/item/LinuxMuslCheck.php +++ b/src/SPC/doctor/item/LinuxMuslCheck.php @@ -73,9 +73,9 @@ class LinuxMuslCheck FileSystem::extractSource($musl_version_name, DOWNLOAD_PATH . "/{$musl_version_name}.tar.gz"); logger()->info('Installing musl wrapper'); shell()->cd(SOURCE_PATH . "/{$musl_version_name}") - ->exec('./configure --disable-gcc-wrapper') - ->exec('make -j') - ->exec("{$prefix}make install"); + ->exec('CC=gcc CXX=g++ AR=ar LD=ld ./configure --disable-gcc-wrapper') + ->exec('CC=gcc CXX=g++ AR=ar LD=ld make -j') + ->exec("CC=gcc CXX=g++ AR=ar LD=ld {$prefix}make install"); // TODO: add path using putenv instead of editing /etc/profile return true; } catch (RuntimeException) {