From b4988e0b880c284886137af51961bda6f417d52f Mon Sep 17 00:00:00 2001 From: jperkin Date: Mon, 4 Apr 2022 15:38:47 +0000 Subject: mk: Fix malformed conditional. There's no guarantee that POSSIBLE_GFORTRAN_VERSION is a numeric value, so cannot be compared as such. For example on my macOS it is set to "clang-12 (clang-1205.0.22.9)". This really needs to be normalised correctly at some point. --- mk/compiler/gfortran.mk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mk') diff --git a/mk/compiler/gfortran.mk b/mk/compiler/gfortran.mk index 226f379c4c0..ce94cf2add6 100644 --- a/mk/compiler/gfortran.mk +++ b/mk/compiler/gfortran.mk @@ -1,4 +1,4 @@ -# $NetBSD: gfortran.mk,v 1.19 2022/04/02 08:01:48 nia Exp $ +# $NetBSD: gfortran.mk,v 1.20 2022/04/04 15:38:47 jperkin Exp $ # # Copyright (c) 2005 The NetBSD Foundation, Inc. # All rights reserved. @@ -47,7 +47,7 @@ POSSIBLE_GFORTRAN_VERSION?= ${CC_VERSION:S/gcc-//:C/.[0-9].[0-9]$//} POSSIBLE_GFORTRAN_VERSION= 10 .endif -.if ${POSSIBLE_GFORTRAN_VERSION} <= 9 && \ +.if !empty(POSSIBLE_GFORTRAN_VERSION:M[0-9]) && \ !empty(MACHINE_PLATFORM:MNetBSD-*-earm*) POSSIBLE_GFORTRAN_VERSION= 10 .endif -- cgit v1.2.3