public inbox for java-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [patch] fix natgetstacktrace.cc compilation for Darwin
@ 2007-01-31 21:14 Andreas Tobler
  2007-01-31 21:23 ` Tom Tromey
  0 siblings, 1 reply; 2+ messages in thread
From: Andreas Tobler @ 2007-01-31 21:14 UTC (permalink / raw)
  To: Java Patches

Hi all,

this little patch fixes the mentioned test case on Darwin.

Ok for trunk ?

Andreas


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.


Index: jvmti-interp.exp
===================================================================
--- jvmti-interp.exp    (revision 121436)
+++ jvmti-interp.exp    (working copy)
@@ -112,9 +112,16 @@
            # 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]
    }

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [patch] fix natgetstacktrace.cc compilation for Darwin
  2007-01-31 21:14 [patch] fix natgetstacktrace.cc compilation for Darwin Andreas Tobler
@ 2007-01-31 21:23 ` Tom Tromey
  0 siblings, 0 replies; 2+ messages in thread
From: Tom Tromey @ 2007-01-31 21:23 UTC (permalink / raw)
  To: Andreas Tobler; +Cc: Java Patches

>>>>> "Andreas" == Andreas Tobler <toa@pop.agri.ch> writes:

Andreas> this little patch fixes the mentioned test case on Darwin.
Andreas> Ok for trunk ?

Yes, thanks.

Tom

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-01-31 21:23 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-01-31 21:14 [patch] fix natgetstacktrace.cc compilation for Darwin Andreas Tobler
2007-01-31 21:23 ` Tom Tromey

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).