mirror of
https://git.planet-casio.com/Lephenixnoir/sh-elf-gcc.git
synced 2024-12-28 04:23:39 +01:00
build: use gmake on OpenBSD
This commit is contained in:
parent
49de34fe9e
commit
aa09965a6d
2 changed files with 14 additions and 2 deletions
8
build.sh
8
build.sh
|
@ -13,6 +13,12 @@ else
|
|||
cores=$(nproc)
|
||||
fi
|
||||
|
||||
if command -v gmake >/dev/null 2>&1; then
|
||||
make_command=gmake
|
||||
else
|
||||
make_command=make
|
||||
fi
|
||||
|
||||
echo "$TAG Compiling gcc (usually 10-20 minutes)..."
|
||||
run_quietly giteapc-build.log \
|
||||
make -j"$cores" all-gcc all-target-libgcc
|
||||
$make_command -j"$cores" all-gcc all-target-libgcc
|
||||
|
|
|
@ -6,10 +6,16 @@
|
|||
source util.sh
|
||||
PREFIX="$1"
|
||||
|
||||
if command -v gmake >/dev/null 2>&1; then
|
||||
make_command=gmake
|
||||
else
|
||||
make_command=make
|
||||
fi
|
||||
|
||||
cd build
|
||||
echo "$TAG Installing to local folder..."
|
||||
run_quietly giteapc-install.log \
|
||||
make install-strip-gcc install-strip-target-libgcc
|
||||
$make_command install-strip-gcc install-strip-target-libgcc
|
||||
cd ..
|
||||
|
||||
# Symbolic link executables to $PREFIX/bin
|
||||
|
|
Loading…
Reference in a new issue