[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cp-patches] [patch] make darwin 'work' with classpath

From: Andreas Tobler
Subject: [cp-patches] [patch] make darwin 'work' with classpath
Date: Sun, 24 Jul 2005 23:05:08 +0200
User-agent: Mozilla Thunderbird 1.0.5 (Macintosh/20050711)

Hi all,

the attached patch changes link behavior of darwin ppc and makes it work in reality. For detailed explanation please search the apple developer pages. In short, when building against a .so we have a module which is like an extension an not like a shared library as known on ppc linux. It is not possible to link against an extension/module/bundle.

It's a longer story and I do not have the breath to expalin every detail right now. I'm certainly open to expalin it. With this test I can run the mauve tests and co quite successfully. I even can run some simple (sometimes bigger) gui apps with it.


2005-07-24  Andreas Tobler  <address@hidden>

        * (LIBVERSION): Check against darwin to set module 'no'
        for it. Modules under darwin are not linkable. See Apple docs.
        * configure: Regenerate
Index: classpath/
RCS file: /cvs/gcc/gcc/libjava/classpath/,v
retrieving revision
diff -u -r1.1.1.1
--- classpath/      16 Jul 2005 00:30:31 -0000
+++ classpath/      24 Jul 2005 20:51:26 -0000
@@ -21,7 +21,16 @@
 dnl at which time we'll have to be more anal about such things
 dnl -----------------------------------------------------------
-CLASSPATH_MODULE="-module -version-info ${LIBVERSION} -no-undefined"
+case "$host_os" in
+     darwin*)
+       cp_module=""
+       ;;
+       *)
+       cp_module="-module"
+       ;;
+CLASSPATH_MODULE="${cp_module} -version-info ${LIBVERSION} -no-undefined"

reply via email to

[Prev in Thread] Current Thread [Next in Thread]