diff options
| author | pinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-10-02 21:40:55 +0000 |
|---|---|---|
| committer | pinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-10-02 21:40:55 +0000 |
| commit | 56d317f7466cfefc73f54101da10f79e616f68a2 (patch) | |
| tree | 29a5cc220b59e7a1521b9660e3761e7869ac8000 /libjava/testsuite/libjava.jni/jni.exp | |
| parent | a3c702a80e830b96f975e31df31cd560f97ac8eb (diff) | |
| download | ppe42-gcc-56d317f7466cfefc73f54101da10f79e616f68a2.tar.gz ppe42-gcc-56d317f7466cfefc73f54101da10f79e616f68a2.zip | |
2005-10-02 Andrew Pinski <pinskia@physics.uc.edu>
* testsuite/lib/jni.exp (gcj_jni_test_one): For
darwin, use -shared-libgcc not -lgcc_s, and explain why.
(gcj_jni_invocation_test_one): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@104878 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/testsuite/libjava.jni/jni.exp')
| -rw-r--r-- | libjava/testsuite/libjava.jni/jni.exp | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/libjava/testsuite/libjava.jni/jni.exp b/libjava/testsuite/libjava.jni/jni.exp index c32330a2354..1810668111f 100644 --- a/libjava/testsuite/libjava.jni/jni.exp +++ b/libjava/testsuite/libjava.jni/jni.exp @@ -131,11 +131,13 @@ proc gcj_jni_test_one {file} { lappend cxxflaglist "-L$cxxldlibflags" } - # Darwin does not yet have a libgcc_s.dylib library. - # So we add it here. If the libgcc_s is installed, the libstdc++ - # would pick it up. + # 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 { [istarget "*-*-darwin*"] } { - lappend cxxflaglist "-lgcc_s -lstdc++" + lappend cxxflaglist "-shared-libgcc -lstdc++" } else { lappend cxxflaglist "-lstdc++" } @@ -243,10 +245,13 @@ proc gcj_jni_invocation_test_one {file} { set cfile [file rootname $file].c # Darwin needs -liconv linked, otherwise we get some unresolved. - # Also, like in the cxxtest we need to add -lgcc_s since Darwin - # has no libgcc_s.dylib installed yet. + # 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 { [istarget "*-*-darwin*"] } { - set cxxflags "-L../.libs -lgcc_s -lgcj -liconv" + set cxxflags "-L../.libs -shared-libgcc -lgcj -liconv" } else { global LIBJAVA if [info exists LIBJAVA] { |

