update: add CC environment option to mp-build
This commit is contained in:
parent
2d828e0164
commit
5b36261521
@ -344,6 +344,7 @@ done
|
|||||||
unset_indent
|
unset_indent
|
||||||
|
|
||||||
info "Running the build function"
|
info "Running the build function"
|
||||||
|
export CC="gcc"
|
||||||
export CFLAGS="-march=x86-64 -mtune=generic -O2"
|
export CFLAGS="-march=x86-64 -mtune=generic -O2"
|
||||||
export ROOTDIR="${rootpath}"
|
export ROOTDIR="${rootpath}"
|
||||||
export MAKEFLAGS="-j${OPT_CORES}"
|
export MAKEFLAGS="-j${OPT_CORES}"
|
||||||
@ -363,8 +364,8 @@ else
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
unset XORG_CONFIG XORG_PREFIX
|
unset XORG_CONFIG XORG_PREFIX
|
||||||
unset CFLAGS ROOTDIR
|
|
||||||
unset MAKEOPTS MAKEFLAGS
|
unset MAKEOPTS MAKEFLAGS
|
||||||
|
unset CFLAGS ROOTDIR CC
|
||||||
|
|
||||||
if [ "$SECONDS" != "0" ]; then
|
if [ "$SECONDS" != "0" ]; then
|
||||||
success "Completed the build in ${SECONDS}s"
|
success "Completed the build in ${SECONDS}s"
|
||||||
|
Loading…
Reference in New Issue
Block a user