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
This commit is contained in:
Andreas Tobler 2007-01-31 21:28:28 +00:00 committed by Andreas Tobler
parent 6a50ab1837
commit d36114b201
2 changed files with 15 additions and 3 deletions

View file

@ -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]
}