https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90386
Bug ID: 90386
Summary: Offloading: libgfortran, libm dependencies
Product: gcc
Version: 9.0
Status: UNCONFIRMED
Keywords: openacc, openmp
Severity: normal
Priority: P3
Component: driver
Assignee: unassigned at gcc dot gnu.org
Reporter: tschwinge at gcc dot gnu.org
CC: jakub at gcc dot gnu.org
Target Milestone: ---
Offloading code generation may depend on libgfortran, or libm, for example,
when compiling Fortran code, or when OMP regions use math functions. Currently
you manually have to specify 'gfortran -foffload=-lgfortran' (implicit
'-lgfortran', but not implicit '-foffload=-lgfortran' for offloading code
generation), or have to specify '-lm -foffload=-lm' ('-lm' alone should be
sufficient?).
See <http://mid.mail-archive.com/[email protected]> for some more
details, from a few years ago.