summaryrefslogtreecommitdiff
path: root/libjava/testsuite/libjava.jni
diff options
context:
space:
mode:
authorandreast <andreast@138bc75d-0d04-0410-961f-82ee72b054a4>2004-06-18 20:56:56 +0000
committerandreast <andreast@138bc75d-0d04-0410-961f-82ee72b054a4>2004-06-18 20:56:56 +0000
commit27a35675ce6e0ff5269c872a29e09fe73924a54a (patch)
treeb83d02a101454f1db432cf904029d298818c5427 /libjava/testsuite/libjava.jni
parentb62f19183f58ae736ca9e010efd8cbc1f176cbb6 (diff)
downloadgcc-27a35675ce6e0ff5269c872a29e09fe73924a54a.tar.gz
2004-06-18 Andreas Tobler <a.tobler@schweiz.ch>
* testsuite/libjava.jni/jni.exp (gcj_jni_test_one): Add lgcc_s for darwin. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@83360 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/testsuite/libjava.jni')
-rw-r--r--libjava/testsuite/libjava.jni/jni.exp12
1 files changed, 10 insertions, 2 deletions
diff --git a/libjava/testsuite/libjava.jni/jni.exp b/libjava/testsuite/libjava.jni/jni.exp
index b1f6d4e34f4..838b83324de 100644
--- a/libjava/testsuite/libjava.jni/jni.exp
+++ b/libjava/testsuite/libjava.jni/jni.exp
@@ -11,7 +11,7 @@ proc gcj_jni_compile_c_to_so {file {options {}}} {
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] } {
@@ -131,7 +131,15 @@ proc gcj_jni_test_one {file} {
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]
}