Library specs for compiler

FX fxcoudert@gmail.com
Wed Nov 20 15:23:00 GMT 2013


> OK, I’m nearly ready to submit my IEEE patch. Last remaining thing: move the tests into the testsuite. This doesn’t work so far, because the compiler called by the testsuite cannot find the intrinsic modules.

My apologies! I struggled for half an hour, then sent my mail, then had a coffee… and I found the solution:

Index: testsuite/lib/gfortran.exp
===================================================================
--- testsuite/lib/gfortran.exp	(revision 205019)
+++ testsuite/lib/gfortran.exp	(working copy)
@@ -171,7 +171,7 @@ proc gfortran_init { args } {
 		} else {
 		    set specpath [get_multilibs]
 		}
-		set GFORTRAN_UNDER_TEST [findfile $base_dir/../../gfortran "$base_dir/../../gfortran -B$base_dir/../../ -B$specpath/libgfortran/" [findfile $base_dir/gfortran "$base_dir/gfortran -B$base_dir/" [transform gfortran]]]
+		set GFORTRAN_UNDER_TEST [findfile $base_dir/../../gfortran "$base_dir/../../gfortran -B$base_dir/../../ -B$specpath/libgfortran/ -fintrinsic-modules-path $specpath/libgfortran/" [findfile $base_dir/gfortran "$base_dir/gfortran -B$base_dir/" [transform gfortran]]]
 	    }
 	}
     }



More information about the Fortran mailing list