aboutsummaryrefslogtreecommitdiff
path: root/libjava/testsuite/libjava.jvmti
diff options
context:
space:
mode:
authorAndreas Tobler <a.tobler@schweiz.org>2007-01-31 21:28:28 +0000
committerAndreas Tobler <andreast@gcc.gnu.org>2007-01-31 22:28:28 +0100
commitd36114b201170944f503f59c2ae50b8d09989267 (patch)
treeca02b9de7e456878c358f60650be4dcad671a93a /libjava/testsuite/libjava.jvmti
parent6a50ab1837ef001d66279f1431efb6d24196ac1a (diff)
downloadgcc-d36114b201170944f503f59c2ae50b8d09989267.zip
gcc-d36114b201170944f503f59c2ae50b8d09989267.tar.gz
gcc-d36114b201170944f503f59c2ae50b8d09989267.tar.bz2
jvmti-interp.exp (gij_jvmti_test_one): Add -shared-libgcc to the cxxflaglist for Darwin.
2007-01-31 Andreas Tobler <a.tobler@schweiz.org> * testsuite/libjava.jvmti/jvmti-interp.exp (gij_jvmti_test_one): Add -shared-libgcc to the cxxflaglist for Darwin. From-SVN: r121438
Diffstat (limited to 'libjava/testsuite/libjava.jvmti')
-rw-r--r--libjava/testsuite/libjava.jvmti/jvmti-interp.exp13
1 files changed, 10 insertions, 3 deletions
diff --git a/libjava/testsuite/libjava.jvmti/jvmti-interp.exp b/libjava/testsuite/libjava.jvmti/jvmti-interp.exp
index 0c0fca1..73a0582 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]
}