diff options
author | Robert Lipe <robertl@dgii.com> | 1998-10-01 07:45:56 +0000 |
---|---|---|
committer | Robert Lipe <robertl@gcc.gnu.org> | 1998-10-01 07:45:56 +0000 |
commit | 047fb009cae97b698edfbc03471c124c37211a94 (patch) | |
tree | 73939e3317b5186f64f150acd320c296e915108e /gcc/testsuite/lib | |
parent | 69428cb4b9e10a59c9ee16c6e8d489090600ff8e (diff) | |
download | gcc-047fb009cae97b698edfbc03471c124c37211a94.zip gcc-047fb009cae97b698edfbc03471c124c37211a94.tar.gz gcc-047fb009cae97b698edfbc03471c124c37211a94.tar.bz2 |
objc.exp (objc_target_compile): Add -L during compiles for multilibbed hosts.
* lib/objc.exp (objc_target_compile): Add -L during compiles for
multilibbed hosts. Idea grafted from g77.exp.
From-SVN: r22708
Diffstat (limited to 'gcc/testsuite/lib')
-rw-r--r-- | gcc/testsuite/lib/objc.exp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/testsuite/lib/objc.exp b/gcc/testsuite/lib/objc.exp index c4f325f..d67ef04 100644 --- a/gcc/testsuite/lib/objc.exp +++ b/gcc/testsuite/lib/objc.exp @@ -139,6 +139,12 @@ proc objc_target_compile { source dest type options } { if [target_info exists objc,no_varargs] { lappend options "additional_flags=-DNO_VARARGS" } + set objcpath "[get_multilibs]" + set libobjc_dir [lookfor_file ${objcpath} libobjc/libobjc.a] + if { $libobjc_dir != "" } { + set objc_link_flags "-L[file dirname ${libobjc_dir}]" + lappend options "additional_flags=${objc_link_flags}" + } lappend options "compiler=$OBJC_UNDER_TEST" return [target_compile $source $dest $type $options] } |