diff options
author | law <law@138bc75d-0d04-0410-961f-82ee72b054a4> | 1998-02-09 22:54:34 +0000 |
---|---|---|
committer | law <law@138bc75d-0d04-0410-961f-82ee72b054a4> | 1998-02-09 22:54:34 +0000 |
commit | f3cb19d108a84c0cca73083acc0bd44229c11221 (patch) | |
tree | 0b6b9417bcbfe70026fdcda0097fd2c285ac45fd /gcc/testsuite/lib | |
parent | 0eff3d7cb57a236a00ab43eed69194afcc716c58 (diff) | |
download | ppe42-gcc-f3cb19d108a84c0cca73083acc0bd44229c11221.tar.gz ppe42-gcc-f3cb19d108a84c0cca73083acc0bd44229c11221.zip |
* lib/g77.exp (g77_target_compile): Fix multilibs for libf2c.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@17818 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/lib')
-rw-r--r-- | gcc/testsuite/lib/g77.exp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gcc/testsuite/lib/g77.exp b/gcc/testsuite/lib/g77.exp index ddb3cf216ae..ba46a9f5499 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] } |