PATCH: Fix libgomp check failures for multilibs

H. J. Lu hjl@lucon.org
Thu Jan 19 23:48:00 GMT 2006


libgomp check failed on Linux/x86-64 with multilibs:

http://gcc.gnu.org/ml/gcc-testresults/2006-01/msg00953.html

This patch works for me.


H.J.
----
2006-01-19  H.J. Lu  <hongjiu.lu@intel.com>

	* testsuite/lib/libgomp-dg.exp (blddir): Set it in
	libgomp_init.

--- libgomp/testsuite/lib/libgomp-dg.exp.64	2006-01-18 12:09:44.000000000 -0800
+++ libgomp/testsuite/lib/libgomp-dg.exp	2006-01-19 14:47:54.000000000 -0800
@@ -40,8 +40,6 @@ if [info exists TOOL_OPTIONS] {
 } else {
     set multilibs [get_multilibs]
 }
-set blddir [lookfor_file $multilibs libgomp]
-
 proc libgomp_init { args } {
     global srcdir blddir objdir tool_root_dir
     global libgomp_initialized
@@ -58,6 +56,8 @@ proc libgomp_init { args } {
     global lang_library_path
     global lang_link_flags
 
+    set blddir [lookfor_file [get_multilibs] libgomp]
+
     # We set LC_ALL and LANG to C so that we get the same error
     # messages as expected.
     setenv LC_ALL C



More information about the Gcc-patches mailing list