[Bug 275431] lang/gcc12: install ISO_Fortran_binding.h in a separate directory
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 29 Nov 2023 17:46:19 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=275431 Bug ID: 275431 Summary: lang/gcc12: install ISO_Fortran_binding.h in a separate directory Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: Individual Port(s) Assignee: salvadore@freebsd.org Reporter: thierry@FreeBSD.org Assignee: salvadore@freebsd.org Flags: maintainer-feedback?(salvadore@freebsd.org) Created attachment 246666 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=246666&action=edit lang/gcc12: install ISO_Fortran_binding.h in a separate directory ISO_Fortran_binding.h is sometimes needed for the support of Fortran 2018, e.g. MPICH must find it to build mpi_f08.mod. ATM it is installed in a directory depending on $CONFIGURE_TARGET with a complex path, and it is not possible to point CFLAGS towards this directory because other headers (like stdatomic.h) would conflict with those from the system. Therefore create a new directory /usr/local/include/gcc12 to install this header. Secondly introduce a new CFLAGS for ISO_Fortran_binding.h into Mk/Uses/fortran.mk. Define CFLAGS_F2018: if needed it will point towards the directory containing ISO_Fortran_binding. (installed by GCC). Of course, this patch should be applied too in lang/gcc13 and later, but there is no hurry. -- You are receiving this mail because: You are the assignee for the bug.