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).
From 0feb83fae30070cf250781449670638d7addd947 Mon Sep 17 00:00:00 2001
From: Piotr Kubaj <pku...@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 <pku...@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

Attachment: signature.asc
Description: PGP signature

Reply via email to