pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mk/compiler gfortran: Correct notion of check. All pkg...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/b230a384d92a
branches:  trunk
changeset: 376085:b230a384d92a
user:      nia <nia%pkgsrc.org@localhost>
date:      Sat Apr 02 08:01:48 2022 +0000

description:
gfortran: Correct notion of check. All pkgsrc gccs before version 10 are
broken on 32-bit arm.

diffstat:

 mk/compiler/gfortran.mk |  10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)

diffs (24 lines):

diff -r e35648728e78 -r b230a384d92a mk/compiler/gfortran.mk
--- a/mk/compiler/gfortran.mk   Sat Apr 02 07:57:11 2022 +0000
+++ b/mk/compiler/gfortran.mk   Sat Apr 02 08:01:48 2022 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: gfortran.mk,v 1.18 2022/04/02 07:57:11 nia Exp $
+# $NetBSD: gfortran.mk,v 1.19 2022/04/02 08:01:48 nia Exp $
 #
 # Copyright (c) 2005 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -43,8 +43,12 @@
 
 # gcc9 doesn't work on NetBSD/arm, but gcc10 does.
 .if !empty(POSSIBLE_GFORTRAN_VERSION:M9) && \
-    (!empty(MACHINE_PLATFORM:MNetBSD-*-aarch64*) || \
-    !empty(MACHINE_PLATFORM:MNetBSD-*-earm*))
+    !empty(MACHINE_PLATFORM:MNetBSD-*-aarch64*)
+POSSIBLE_GFORTRAN_VERSION=     10
+.endif
+
+.if ${POSSIBLE_GFORTRAN_VERSION} <= 9 && \
+    !empty(MACHINE_PLATFORM:MNetBSD-*-earm*)
 POSSIBLE_GFORTRAN_VERSION=     10
 .endif
 



Home | Main Index | Thread Index | Old Index