git: dd37ac872d51 - main - Mk/Uses/fortran.mk: introduce a new CFLAGS for ISO_Fortran_binding.h

From: Thierry Thomas <thierry_at_FreeBSD.org>
Date: Tue, 05 Dec 2023 18:11:31 UTC
The branch main has been updated by thierry:

URL: https://cgit.FreeBSD.org/ports/commit/?id=dd37ac872d5164606777732108cdf24f68210688

commit dd37ac872d5164606777732108cdf24f68210688
Author:     Thierry Thomas <thierry@FreeBSD.org>
AuthorDate: 2023-11-28 21:26:21 +0000
Commit:     Thierry Thomas <thierry@FreeBSD.org>
CommitDate: 2023-12-05 18:11:27 +0000

    Mk/Uses/fortran.mk: introduce a new CFLAGS for ISO_Fortran_binding.h
    
    Define CFLAGS_F2018: if needed it will point towards the directory
    containing ISO_Fortran_binding. (installed by GCC).
    
    PR:             275431
---
 Mk/Uses/fortran.mk | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Mk/Uses/fortran.mk b/Mk/Uses/fortran.mk
index 82336932c4f6..a7dc6717dce8 100644
--- a/Mk/Uses/fortran.mk
+++ b/Mk/Uses/fortran.mk
@@ -29,6 +29,7 @@ F90FLAGS+=	-Wl,-rpath=${LOCALBASE}/lib/gcc${_GCC_VER}
 FCFLAGS+=	-Wl,-rpath=${LOCALBASE}/lib/gcc${_GCC_VER}
 LDFLAGS+=	-Wl,-rpath=${LOCALBASE}/lib/gcc${_GCC_VER} \
 		-L${LOCALBASE}/lib/gcc${_GCC_VER}
+CFLAGS_F2018=	-I${LOCALBASE}/include/gcc${_GCC_VER}
 .  else
 IGNORE=		USES=fortran: invalid arguments: ${fortran_ARGS}
 .  endif