]> gcc.gnu.org Git - gcc.git/commitdiff
* lib/g77.exp (g77_target_compile): Fix multilibs for libf2c.
authorH.J. Lu <hjl@gnu.org>
Mon, 9 Feb 1998 22:54:34 +0000 (22:54 +0000)
committerJeff Law <law@gcc.gnu.org>
Mon, 9 Feb 1998 22:54:34 +0000 (15:54 -0700)
From-SVN: r17818

gcc/testsuite/ChangeLog
gcc/testsuite/lib/g77.exp

index 6c1c10b0516cd44e74cf552822126f2a6fb8b069..39043d329b1ae33841422f4c894ce60e16fe2e18 100644 (file)
@@ -1,5 +1,8 @@
+
 Mon Feb  9 02:08:47 1998  H.J. Lu  (hjl@gnu.org)
 
+       * lib/g77.exp (g77_target_compile): Fix multilibs for libf2c.
+
         * lib/old-dejagnu.exp (old-dejagnu): Added the
         "execution test - XFAIL *-*-*" handling in the spirit of
         "excess errors test -". Changed the "execution test fails"
index ddb3cf216aee2dfc55ea19dda4e0f52d1931e5b6..ba46a9f5499382b460362bc9f1ea43073ef3ffbc 100644 (file)
@@ -141,6 +141,14 @@ proc g77_target_compile { source dest type options } {
     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]
 }
This page took 1.194185 seconds and 5 git commands to generate.