pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/mk/compiler gfortran.mk: Use gcc version 10 on all arm...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/e35648728e78
branches:  trunk
changeset: 376084:e35648728e78
user:      nia <nia%pkgsrc.org@localhost>
date:      Sat Apr 02 07:57:11 2022 +0000

description:
gfortran.mk: Use gcc version 10 on all arm-type netbsds.

diffstat:

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

diffs (22 lines):

diff -r 8a1afcdde5e7 -r e35648728e78 mk/compiler/gfortran.mk
--- a/mk/compiler/gfortran.mk   Sat Apr 02 07:51:46 2022 +0000
+++ b/mk/compiler/gfortran.mk   Sat Apr 02 07:57:11 2022 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: gfortran.mk,v 1.17 2021/04/25 07:51:25 mrg Exp $
+# $NetBSD: gfortran.mk,v 1.18 2022/04/02 07:57:11 nia Exp $
 #
 # Copyright (c) 2005 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -41,8 +41,10 @@
 # in that case.
 POSSIBLE_GFORTRAN_VERSION?=    ${CC_VERSION:S/gcc-//:C/.[0-9].[0-9]$//}
 
-# gcc9 doesn't work on NetBSD/aarch64, but gcc10 does.
-.if !empty(POSSIBLE_GFORTRAN_VERSION:M9) && !empty(MACHINE_PLATFORM:MNetBSD-*-aarch64*)
+# 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*))
 POSSIBLE_GFORTRAN_VERSION=     10
 .endif
 



Home | Main Index | Thread Index | Old Index