* testsuite/lib/libffi-dg.exp: Add DYLD_LIBRARY_PATH for darwin.
Add -lgcc_s to additional flags.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@73726
138bc75d-0d04-0410-961f-
82ee72b054a4
+2003-11-19 Andreas Tobler <a.tobler@schweiz.ch>
+
+ * testsuite/lib/libffi-dg.exp: Add DYLD_LIBRARY_PATH for darwin.
+ Add -lgcc_s to additional flags.
+
2003-11-12 Andreas Tobler <a.tobler@schweiz.ch>
* configure.in, include/Makefile.am: PR libgcj/11147, install
2003-11-12 Andreas Tobler <a.tobler@schweiz.ch>
* configure.in, include/Makefile.am: PR libgcj/11147, install
load_lib dg.exp
load_lib libgloss.exp
load_lib dg.exp
load_lib libgloss.exp
# Define libffi callbacks for dg.exp.
proc libffi-dg-test-1 { target_compile prog do_what extra_tool_flags } {
# Define libffi callbacks for dg.exp.
proc libffi-dg-test-1 { target_compile prog do_what extra_tool_flags } {
setenv LD_LIBRARYN32_PATH $ld_library_path
setenv LD_LIBRARY64_PATH $ld_library_path
setenv LD_LIBRARY_PATH_64 $ld_library_path
setenv LD_LIBRARYN32_PATH $ld_library_path
setenv LD_LIBRARY64_PATH $ld_library_path
setenv LD_LIBRARY_PATH_64 $ld_library_path
+ setenv DYLD_LIBRARY_PATH $ld_library_path
}
proc libffi_target_compile { source dest type options } {
}
proc libffi_target_compile { source dest type options } {
global ld_library_path
global libffi_link_flags
global libffi_include
global ld_library_path
global libffi_link_flags
global libffi_include
if { [target_info needs_status_wrapper]!="" && [info exists gluefile] } {
if { [target_info needs_status_wrapper]!="" && [info exists gluefile] } {
# search for ffi_mips.h in srcdir, too
lappend options "additional_flags=-I${libffi_include} -I${srcdir}/../include"
lappend options "additional_flags=${libffi_link_flags}"
# search for ffi_mips.h in srcdir, too
lappend options "additional_flags=-I${libffi_include} -I${srcdir}/../include"
lappend options "additional_flags=${libffi_link_flags}"
- lappend options "libs= -lffi"
+ lappend options "libs= -lffi -lgcc_s"
+
verbose "options: $options"
return [target_compile $source $dest $type $options]
}
verbose "options: $options"
return [target_compile $source $dest $type $options]
}
# Local Variables:
# tcl-indent-level:4
# Local Variables:
# tcl-indent-level:4
-# End:
\ No newline at end of file