mirror of
https://git.planet-casio.com/Lephenixnoir/sh-elf-gcc.git
synced 2025-05-31 07:55:14 +02:00
configure: find GMP, MPFR and MPC in /usr/local on OpenBSD
This commit is contained in:
parent
aa09965a6d
commit
2d8919397f
1 changed files with 8 additions and 1 deletions
|
@ -72,6 +72,13 @@ ln -sf $(command -v sh-elf-ranlib) sh3eb-elf/bin/ranlib
|
|||
|
||||
cd build
|
||||
|
||||
# OpenBSD apparently installs these in /usr/local
|
||||
if [[ $(uname) == "OpenBSD" ]]; then
|
||||
extra_args="--with-gmp=/usr/local --with-mpfr=/usr/local --with-mpc=/usr/local"
|
||||
else
|
||||
extra_args=
|
||||
fi
|
||||
|
||||
echo "$TAG Configuring gcc..."
|
||||
run_quietly giteapc-configure.log \
|
||||
../gcc-$VERSION/configure --prefix="$PREFIX" --target=sh3eb-elf --with-multilib-list=m3,m4-nofpu --enable-languages=c,c++ --without-headers --with-newlib --program-prefix=sh-elf- --enable-libssp --enable-lto
|
||||
../gcc-$VERSION/configure --prefix="$PREFIX" --target=sh3eb-elf --with-multilib-list=m3,m4-nofpu --enable-languages=c,c++ --without-headers --with-newlib --program-prefix=sh-elf- --enable-libssp --enable-lto $extra_args
|
||||
|
|
Loading…
Add table
Reference in a new issue