When invoking gcc to compile fortran code, fortran.exp is currently adding the
options -lgfortran -foffload=-lgfortran to the gcc command line. libgfortran
statically links to libquadmath and the gfortran driver invokes the linker
with -lquadmath as well as -lgfortran so fortran.exp should do so too.
libgomp/
* testsuite/libgomp.fortan/fortran.exp (lang_link_flags): Add
-lquadmath.
* testsuite/libgomp.oacc-fortran/fortran.exp (lang_link_flags): Add
-lquadmath.
(cherry picked from openacc-gcc-9-branch commit
bb65425bb284f3efc08bff4d94661123cdc27b41)
+2019-01-30 Andrew Jenner <andrew@codesourcery.com>
+
+ * testsuite/libgomp.fortan/fortran.exp (lang_link_flags): Add
+ -lquadmath.
+ * testsuite/libgomp.oacc-fortran/fortran.exp (lang_link_flags): Add
+ -lquadmath.
+
2019-05-30 Kwok Cheung Yeung <kcy@codesourcery.com>
* libgomp_g.h: Include stdint.h instead of gstdint.h.
set shlib_ext [get_shlib_extension]
set lang_library_path "../libgfortran/.libs"
-set lang_link_flags "-lgfortran -foffload=-lgfortran"
+set lang_link_flags "-lgfortran -foffload=-lgfortran -lquadmath"
if [info exists lang_include_flags] then {
unset lang_include_flags
}
set shlib_ext [get_shlib_extension]
set lang_library_path "../libgfortran/.libs"
-set lang_link_flags "-lgfortran -foffload=-lgfortran"
+set lang_link_flags "-lgfortran -foffload=-lgfortran -lquadmath"
if [info exists lang_include_flags] then {
unset lang_include_flags
}