diff options
author | Geoffrey Keating <geoffk@apple.com> | 2005-10-01 06:11:29 +0000 |
---|---|---|
committer | Geoffrey Keating <geoffk@gcc.gnu.org> | 2005-10-01 06:11:29 +0000 |
commit | 0363db460d75a19d143a437479e2e122743430c7 (patch) | |
tree | f5746e8448c0cf8c3d297b0498b9e49aeac4d8d3 | |
parent | 1400103e459276289f3f7827e112191782e7eb6c (diff) | |
download | gcc-0363db460d75a19d143a437479e2e122743430c7.zip gcc-0363db460d75a19d143a437479e2e122743430c7.tar.gz gcc-0363db460d75a19d143a437479e2e122743430c7.tar.bz2 |
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
-rw-r--r-- | libffi/ChangeLog | 5 | ||||
-rw-r--r-- | libffi/testsuite/lib/libffi-dg.exp | 9 |
2 files changed, 12 insertions, 2 deletions
diff --git a/libffi/ChangeLog b/libffi/ChangeLog index df544ba..7c9c97e 100644 --- a/libffi/ChangeLog +++ b/libffi/ChangeLog @@ -1,3 +1,8 @@ +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. diff --git a/libffi/testsuite/lib/libffi-dg.exp b/libffi/testsuite/lib/libffi-dg.exp index 4708ef7..c3eecff 100644 --- a/libffi/testsuite/lib/libffi-dg.exp +++ b/libffi/testsuite/lib/libffi-dg.exp @@ -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" |