A libf2c patch for egcs

H.J. Lu hjl@lucon.org
Mon Feb 9 15:15:00 GMT 1998


Hi,

This patch should fix those new g77 test failures. Maybe it
should be in dejagnu.


-- 
H.J. Lu (hjl@gnu.org)
---
Mon Feb  9 08:34:13 1998  H.J. Lu  (hjl@gnu.org)

	* lib/g77.exp (g77_target_compile): Fix multilibs for libf2c.

Index: lib/g77.exp
===================================================================
RCS file: /home/work/cvs/gnu/egcs/gcc/testsuite/lib/g77.exp,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 g77.exp
--- g77.exp	1997/10/09 17:31:30	1.1.1.1
+++ g77.exp	1998/02/09 20:31:03
@@ -141,6 +141,14 @@
     if [target_info exists g77,no_varargs] {
 	lappend options "additional_flags=-DNO_VARARGS"
     }
+    if ![is_remote host] {
+      set gccpath "[get_multilibs]"
+      set libf2c_dir [lookfor_file ${gccpath} libf2c/libf2c.a]
+      if { $libf2c_dir != "" } {
+	set libf2c_link_flags "-L[file dirname ${libf2c_dir}]"
+	lappend options "additional_flags=${libf2c_link_flags}"
+      }
+    }
     lappend options "compiler=$G77_UNDER_TEST"
     return [target_compile $source $dest $type $options]
 }



More information about the Gcc mailing list