Commit 047fb009 by Robert Lipe Committed by Robert Lipe

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
parent 69428cb4
1998-10-01 Robert Lipe <robertl@dgii.com>
* lib/objc.exp (objc_target_compile): Add -L during compiles for
multilibbed hosts. Idea grafted from g77.exp.
1998-09-30 Dave Love <d.love@dl.ac.uk> 1998-09-30 Dave Love <d.love@dl.ac.uk>
* g77.f-torture/execute/u77-test.f (main): Excise `hostnm' to * g77.f-torture/execute/u77-test.f (main): Excise `hostnm' to
......
...@@ -139,6 +139,12 @@ proc objc_target_compile { source dest type options } { ...@@ -139,6 +139,12 @@ proc objc_target_compile { source dest type options } {
if [target_info exists objc,no_varargs] { if [target_info exists objc,no_varargs] {
lappend options "additional_flags=-DNO_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" lappend options "compiler=$OBJC_UNDER_TEST"
return [target_compile $source $dest $type $options] return [target_compile $source $dest $type $options]
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment