This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
[patch] libltdl fallout
- From: Andreas Tobler <toa at pop dot agri dot ch>
- To: Java Patches <java-patches at gcc dot gnu dot org>
- Date: Wed, 29 Mar 2006 15:20:04 +0200
- Subject: [patch] libltdl fallout
Hello,
this patch restores the previous functionality that we do not build
modules on darwin.
Ok?
Andreas
P.S, where should the CL go? In libltdl or in libjava?
2006-03-29 Andreas Tobler <a.tobler@schweiz.ch>
* acinclude.m4: Restore the situation that we don't build modules on
darwin.
* configure: Regenerated.
Index: acinclude.m4
===================================================================
--- acinclude.m4 (revision 112485)
+++ acinclude.m4 (working copy)
@@ -6371,8 +6371,19 @@
AC_CACHE_CHECK([which extension is used for loadable modules],
[libltdl_cv_shlibext],
[
-module=yes
-eval libltdl_cv_shlibext=$shrext_cmds
+# Here in libltdl for libgcj we don't build modules for darwin.
+# So we say no. Then the extension gets .dylib which is the right
+# thing for shared libraries on darwin. Please keep me next time you
+# import libltdl.
+case "$host_os" in
+darwin*)
+ module=no
+ ;;
+*)
+ module=yes
+ ;;
+esac
+eval libltdl_cv_shlibext=$shrext
])
if test -n "$libltdl_cv_shlibext"; then
AC_DEFINE_UNQUOTED(LTDL_SHLIB_EXT, "$libltdl_cv_shlibext",