public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* A libf2c patch for egcs
@ 1998-02-09 15:15 H.J. Lu
  1998-02-09 22:54 ` Jeffrey A Law
  0 siblings, 1 reply; 2+ messages in thread
From: H.J. Lu @ 1998-02-09 15:15 UTC (permalink / raw)
  To: jgotts; +Cc: egcs

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]
 }

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: A libf2c patch for egcs
  1998-02-09 15:15 A libf2c patch for egcs H.J. Lu
@ 1998-02-09 22:54 ` Jeffrey A Law
  0 siblings, 0 replies; 2+ messages in thread
From: Jeffrey A Law @ 1998-02-09 22:54 UTC (permalink / raw)
  To: H.J. Lu; +Cc: jgotts, egcs

  In message < m0y1zx1-0004ecC@ocean.lucon.org >you write:
  > 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.
Thanks.  Installed.

jeff

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1998-02-09 22:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-02-09 15:15 A libf2c patch for egcs H.J. Lu
1998-02-09 22:54 ` Jeffrey A Law

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).