https://gcc.gnu.org/bugzilla/show_bug.cgi?id=127539

            Bug ID: 127539
           Summary: libgfortran doesn't respect FCFLAGS_FOR_TARGET
           Product: gcc
           Version: 17.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libfortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: doko at gcc dot gnu.org
  Target Milestone: ---

seen when building an i686-w64-mingw64 target on aarch64-linux-gnu, with the
BUILD/HOST FCFLAGS containing an unknown mingw64 option, like
-mbranch-protection=none on arm64, -mbackchain on s390x, the build fails with:

checking whether the GNU Fortran compiler is working... no
configure: error: GNU Fortran is not working; please report a bug in
http://gcc.gnu.org/bugzilla, attaching /<<P
KGBUILDDIR>>/build/i686-w64-mingw32-posix/i686-w64-mingw32/libgfortran/config.log
yes

reporting that upstream as requested.

The Debian maintainer seems aware of that, but it doesn't see to be reported
here:

# libgfortran doesn't handle FCFLAGS_FOR_TARGET, override FCFLAGS
FCFLAGS := $(shell $(dpkg_buildflags_target) --get FCFLAGS)

Reply via email to