mirror of
https://git.planet-casio.com/Lephenixnoir/sh-elf-binutils.git
synced 2025-06-05 10:25:09 +02:00
build: use gmake on OpenBSD
This commit is contained in:
parent
12ec54c78e
commit
d1e489e462
2 changed files with 15 additions and 2 deletions
9
build.sh
9
build.sh
|
@ -14,5 +14,12 @@ else
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "$TAG Compiling binutils (usually 5-10 minutes)..."
|
echo "$TAG Compiling binutils (usually 5-10 minutes)..."
|
||||||
|
|
||||||
|
if command -v gmake >/dev/null 2>&1; then
|
||||||
|
make_command=gmake
|
||||||
|
else
|
||||||
|
make_command=make
|
||||||
|
fi
|
||||||
|
|
||||||
run_quietly giteapc-build.log \
|
run_quietly giteapc-build.log \
|
||||||
make -j"$cores"
|
$make_command -j"$cores"
|
||||||
|
|
|
@ -6,10 +6,16 @@
|
||||||
source util.sh
|
source util.sh
|
||||||
PREFIX="$1"
|
PREFIX="$1"
|
||||||
|
|
||||||
|
if command -v gmake >/dev/null 2>&1; then
|
||||||
|
make_command=gmake
|
||||||
|
else
|
||||||
|
make_command=make
|
||||||
|
fi
|
||||||
|
|
||||||
cd build
|
cd build
|
||||||
echo "$TAG Installing to local folder..."
|
echo "$TAG Installing to local folder..."
|
||||||
run_quietly giteapc-install.log \
|
run_quietly giteapc-install.log \
|
||||||
make install-strip
|
$make_command install-strip
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
# Symbolic link executables to $PREFIX/bin
|
# Symbolic link executables to $PREFIX/bin
|
||||||
|
|
Loading…
Add table
Reference in a new issue