https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91884
--- Comment #3 from Tobias Burnus <burnus at gcc dot gnu.org> --- See patches at: https://gcc.gnu.org/ml/gcc-patches/2019-10/threads.html#00559 - First one: * is the simple patch which got "in" (r276754) - and adds "-lquadmath" conditionally. * The "PS:" shows the hurdles to overcome if one wants to use "gfortran" or "g++" with an in-build-dir test run. - Second one is a cleanup patch + and it uses {GFORTRAN,GXX}_UNDER_TEST, if set. But that's only set with an installed-compiler run (cf. above). Unless someone prefers the second patch - or likes, e.g., to modify gcc/testcases/lib/*.dg's <FE>_init() to actually work when called from a library path. I regard this as FIXED as it handles the original issue: a missing -lquadmath.