This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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",


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]