On Wed, 21 Apr 2021 02:34:43 -0400 NightStrike via Fortran <fortran@gcc.gnu.org> wrote:
> When linking with -static-libgfortran, I get warnings from ld of the form > "ld: warning: -z ignore ignored" and "ld: warning: -z record ignored". I > can't find those -z options documented anywhere. Why is gfortran adding > them? -z are options to ld. Which linker do you use, on which OS? If you use binutils, you can pass -Wl,--verbose to the compiler to instruct the linker to dump the linker script while linking. This should show where the -z comes from: gfortran foo.f90 -static-libgfortran -Wl,--verbose