From 5b36261521eca633ae1a81db65e213de2e77906e Mon Sep 17 00:00:00 2001 From: ngn Date: Fri, 16 Aug 2024 23:06:09 +0300 Subject: [PATCH] update: add CC environment option to mp-build --- mp-build/scripts/mp-build.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mp-build/scripts/mp-build.sh b/mp-build/scripts/mp-build.sh index b93b8a5..ead1bef 100755 --- a/mp-build/scripts/mp-build.sh +++ b/mp-build/scripts/mp-build.sh @@ -344,6 +344,7 @@ done unset_indent info "Running the build function" +export CC="gcc" export CFLAGS="-march=x86-64 -mtune=generic -O2" export ROOTDIR="${rootpath}" export MAKEFLAGS="-j${OPT_CORES}" @@ -363,8 +364,8 @@ else fi unset XORG_CONFIG XORG_PREFIX -unset CFLAGS ROOTDIR unset MAKEOPTS MAKEFLAGS +unset CFLAGS ROOTDIR CC if [ "$SECONDS" != "0" ]; then success "Completed the build in ${SECONDS}s"