Skip to content
Snippets Groups Projects
Commit 0363db46 authored by Geoffrey Keating's avatar Geoffrey Keating Committed by Geoffrey Keating
Browse files

libffi-dg.exp (libffi_target_compile): For darwin, use -shared-libgcc not -lgcc_s, and explain why.

	* testsuite/lib/libffi-dg.exp (libffi_target_compile): For
	darwin, use -shared-libgcc not -lgcc_s, and explain why.

From-SVN: r104847
parent 1400103e
No related branches found
No related tags found
No related merge requests found
2005-09-30 Geoffrey Keating <geoffk@apple.com>
* testsuite/lib/libffi-dg.exp (libffi_target_compile): For
darwin, use -shared-libgcc not -lgcc_s, and explain why.
2005-09-26 Tom Tromey <tromey@redhat.com>
* testsuite/libffi.call/float1.c (value_type): New typedef.
......
......@@ -187,8 +187,13 @@ proc libffi_target_compile { source dest type options } {
lappend options "additional_flags=-I${libffi_include} -I${srcdir}/../include -I${libffi_include}/.."
lappend options "additional_flags=${libffi_link_flags}"
if { [string match "powerpc-*-darwin*" $target_triplet] } {
lappend options "libs= -lgcc_s"
# If you're building the compiler with --prefix set to a place
# where it's not yet installed, then the linker won't be able to
# find the libgcc used by libffi.dylib. We could pass the
# -dylib_file option, but that's complicated, and it's much easier
# to just make the linker find libgcc using -L options.
if { [string match "*-*-darwin*" $target_triplet] } {
lappend options "libs= -shared-libgcc"
}
lappend options "libs= -lffi"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment