+2004-06-18 Andreas Tobler <a.tobler@schweiz.ch>
+
+ * testsuite/libjava.jni/jni.exp (gcj_jni_test_one): Add lgcc_s for
+ darwin.
+
2004-06-18 Ranjit Mathew <rmathew@hotmail.com>
* prims.cc (_Jv_CreateJavaVM): Install SEGV and FPE handlers,
set options ""
# apple uses a different extension for shared/dynamic libraries
-# so we check against powerpc-apple-darwin and set them to
+# so we check against powerpc-apple-darwin and set them to
# dylib, else we assume it's .so
if { [ regexp {powerpc-apple-darwin} $host_triplet] } {
lappend cxxflaglist "-L$cxxldlibflags"
}
- lappend cxxflaglist "-lstdc++"
+ # 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 { [ regexp {powerpc-apple-darwin} $host_triplet] } {
+ lappend cxxflaglist "-lgcc_s -lstdc++"
+ } else {
+ lappend cxxflaglist "-lstdc++"
+ }
+
set cxxflags [join $cxxflaglist]
}