diff options
author | H.J. Lu <hjl@gnu.org> | 1998-02-09 22:54:34 +0000 |
---|---|---|
committer | Jeff Law <law@gcc.gnu.org> | 1998-02-09 15:54:34 -0700 |
commit | b45f3a91b911ec93cc9dd386e911b5771a637c3f (patch) | |
tree | 0b6b9417bcbfe70026fdcda0097fd2c285ac45fd | |
parent | 2fd0af53a1498e221236a5f63cb1700420006c67 (diff) | |
download | gcc-b45f3a91b911ec93cc9dd386e911b5771a637c3f.zip gcc-b45f3a91b911ec93cc9dd386e911b5771a637c3f.tar.gz gcc-b45f3a91b911ec93cc9dd386e911b5771a637c3f.tar.bz2 |
* lib/g77.exp (g77_target_compile): Fix multilibs for libf2c.
From-SVN: r17818
-rw-r--r-- | gcc/testsuite/ChangeLog | 3 | ||||
-rw-r--r-- | gcc/testsuite/lib/g77.exp | 8 |
2 files changed, 11 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 6c1c10b..39043d3 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -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" diff --git a/gcc/testsuite/lib/g77.exp b/gcc/testsuite/lib/g77.exp index ddb3cf2..ba46a9f 100644 --- a/gcc/testsuite/lib/g77.exp +++ b/gcc/testsuite/lib/g77.exp @@ -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] } |