mirror of
https://gcc.gnu.org/git/gcc.git
synced 2024-11-26 12:23:59 +08:00
jni.exp (gcj_jni_test_one): For darwin, use -shared-libgcc not -lgcc_s, and explain why.
2005-10-02 Andrew Pinski <pinskia@physics.uc.edu> * testsuite/lib/jni.exp (gcj_jni_test_one): For darwin, use -shared-libgcc not -lgcc_s, and explain why. (gcj_jni_invocation_test_one): Likewise. From-SVN: r104878
This commit is contained in:
parent
c0ad5a3173
commit
cc86dcfb99
@ -1,3 +1,9 @@
|
||||
2005-10-02 Andrew Pinski <pinskia@physics.uc.edu>
|
||||
|
||||
* testsuite/lib/jni.exp (gcj_jni_test_one): For
|
||||
darwin, use -shared-libgcc not -lgcc_s, and explain why.
|
||||
(gcj_jni_invocation_test_one): Likewise.
|
||||
|
||||
2005-09-30 Tom Tromey <tromey@redhat.com>
|
||||
|
||||
PR libgcj/24051:
|
||||
|
@ -131,11 +131,13 @@ proc gcj_jni_test_one {file} {
|
||||
lappend cxxflaglist "-L$cxxldlibflags"
|
||||
}
|
||||
|
||||
# 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 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 libffi.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 "-lgcc_s -lstdc++"
|
||||
lappend cxxflaglist "-shared-libgcc -lstdc++"
|
||||
} else {
|
||||
lappend cxxflaglist "-lstdc++"
|
||||
}
|
||||
@ -243,10 +245,13 @@ proc gcj_jni_invocation_test_one {file} {
|
||||
|
||||
set cfile [file rootname $file].c
|
||||
# Darwin needs -liconv linked, otherwise we get some unresolved.
|
||||
# Also, like in the cxxtest we need to add -lgcc_s since Darwin
|
||||
# has no libgcc_s.dylib installed yet.
|
||||
# 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 libffi.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*"] } {
|
||||
set cxxflags "-L../.libs -lgcc_s -lgcj -liconv"
|
||||
set cxxflags "-L../.libs -shared-libgcc -lgcj -liconv"
|
||||
} else {
|
||||
global LIBJAVA
|
||||
if [info exists LIBJAVA] {
|
||||
|
Loading…
Reference in New Issue
Block a user