fortran: use fpu-glibc on powerpc*-unknown-freebsd

Message ID YjcY8xgRtHtzTraz@KGPE-D16
State New
Headers
Series fortran: use fpu-glibc on powerpc*-unknown-freebsd |

Commit Message

Piotr Kubaj March 20, 2022, 12:07 p.m. UTC
  fpu-glibc name is a bit incorrect, since it also works on other systems.
I have verified that it builds and can also build other packages
correctly (that were failing before).
  

Comments

Segher Boessenkool March 20, 2022, 12:19 p.m. UTC | #1
> From: Piotr Kubaj <pkubaj@FreeBSD.org>
> Date: Sun, 20 Mar 2022 13:03:13 +0100
> Subject: [PATCH] fortran: on powerpc*-unknown-freebsd*, also use fpu-glibc
> 
> It builds fine and correctly bulds packages on FreeBSD.
> It looks like "fpu-glibc" name is a bit misleading since it also works
> on FreeBSD.
> 
> Signed-off-by: Piotr Kubaj <pkubaj@FreeBSD.org>

Okay for trunk.  Thanks!


Segher
  

Patch

From 0feb83fae30070cf250781449670638d7addd947 Mon Sep 17 00:00:00 2001
From: Piotr Kubaj <pkubaj@FreeBSD.org>
Date: Sun, 20 Mar 2022 13:03:13 +0100
Subject: [PATCH] fortran: on powerpc*-unknown-freebsd*, also use fpu-glibc

It builds fine and correctly bulds packages on FreeBSD.
It looks like "fpu-glibc" name is a bit misleading since it also works
on FreeBSD.

Signed-off-by: Piotr Kubaj <pkubaj@FreeBSD.org>
---
 libgfortran/configure.host | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/libgfortran/configure.host b/libgfortran/configure.host
index 3d6c2db7772..0f8bc7e0459 100644
--- a/libgfortran/configure.host
+++ b/libgfortran/configure.host
@@ -61,6 +61,14 @@  case "${host_cpu}" in
         ieee_support='yes'
         ;;
     esac
+  ;;
+  powerpc*)
+    case "${host_os}" in
+      freebsd*)
+        fpu_host='fpu-glibc'
+        ieee_support='yes'
+        ;;
+    esac
 
 esac
 
-- 
2.35.1