From 2d8919397f4da4e07a9579bc8433eda2ddb88601 Mon Sep 17 00:00:00 2001 From: Lephenixnoir Date: Thu, 18 Mar 2021 14:53:22 +0100 Subject: [PATCH] configure: find GMP, MPFR and MPC in /usr/local on OpenBSD --- configure.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/configure.sh b/configure.sh index d1023a2..5dabd79 100755 --- a/configure.sh +++ b/configure.sh @@ -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