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.
Regards,
Andreas
2005-07-24 Andreas Tobler <[EMAIL PROTECTED]>
* configure.ac (LIBVERSION): Check against darwin to set module 'no'
for it. Modules under darwin are not linkable. See Apple docs.
* configure: Regenerate
Index: classpath/configure.ac
===================================================================
RCS file: /cvs/gcc/gcc/libjava/classpath/configure.ac,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 configure.ac
--- classpath/configure.ac 16 Jul 2005 00:30:31 -0000 1.1.1.1
+++ classpath/configure.ac 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 -----------------------------------------------------------
AC_SUBST(LIBVERSION, "0:0:0")
-CLASSPATH_MODULE="-module -version-info ${LIBVERSION} -no-undefined"
+case "$host_os" in
+ darwin*)
+ cp_module=""
+ ;;
+ *)
+ cp_module="-module"
+ ;;
+esac
+
+CLASSPATH_MODULE="${cp_module} -version-info ${LIBVERSION} -no-undefined"
AC_SUBST(CLASSPATH_MODULE)
AC_PREREQ(2.59)
_______________________________________________
Classpath-patches mailing list
Classpath-patches@gnu.org
http://lists.gnu.org/mailman/listinfo/classpath-patches