From: Andreas Tobler Date: Wed, 31 Jan 2007 21:28:28 +0000 (+0000) Subject: jvmti-interp.exp (gij_jvmti_test_one): Add -shared-libgcc to the cxxflaglist for... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d36114b201170944f503f59c2ae50b8d09989267;p=gcc.git jvmti-interp.exp (gij_jvmti_test_one): Add -shared-libgcc to the cxxflaglist for Darwin. 2007-01-31 Andreas Tobler * testsuite/libjava.jvmti/jvmti-interp.exp (gij_jvmti_test_one): Add -shared-libgcc to the cxxflaglist for Darwin. From-SVN: r121438 --- diff --git a/libjava/ChangeLog b/libjava/ChangeLog index 3dd1dfaaec3..3ae5d1942d7 100644 --- a/libjava/ChangeLog +++ b/libjava/ChangeLog @@ -1,3 +1,8 @@ +2007-01-31 Andreas Tobler + + * testsuite/libjava.jvmti/jvmti-interp.exp (gij_jvmti_test_one): Add + -shared-libgcc to the cxxflaglist for Darwin. + 2007-01-31 Tom Tromey * scripts.am, Makefile.in: Rebuilt. diff --git a/libjava/testsuite/libjava.jvmti/jvmti-interp.exp b/libjava/testsuite/libjava.jvmti/jvmti-interp.exp index 0c0fca1137e..73a05822005 100644 --- a/libjava/testsuite/libjava.jvmti/jvmti-interp.exp +++ b/libjava/testsuite/libjava.jvmti/jvmti-interp.exp @@ -112,9 +112,16 @@ proc gij_jvmti_test_one {file} { # directory of it to the cxxflaglist. lappend cxxflaglist "-L$cxxldlibflags" } - - lappend cxxflaglist "-lstdc++" - + # 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 libgcj.dylib/libstdc++.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 "-shared-libgcc -lstdc++" + } else { + lappend cxxflaglist "-lstdc++" + } set cxxflags [join $cxxflaglist] }