[Mono-list] libgc6 on libc2.2.5 requires -ldl
Ulrich Kunitz
gefm21@uumail.de
Sun, 7 Apr 2002 19:12:24 +0200
Hi,
I compiled today mono from the cvs. However calling
configure --with-gc=boehm
doesn't work out of the box with libgc6 and libc 2.2.5. Linking of
libdl for dlopen() is also required.
This patch of configure.in worked for me, but might break on other
configurations:
Index: configure.in
===================================================================
RCS file: /mono/mono/configure.in,v
retrieving revision 1.68
diff -u -r1.68 configure.in
--- configure.in 3 Apr 2002 09:34:28 -0000 1.68
+++ configure.in 7 Apr 2002 17:08:43 -0000
@@ -25,7 +25,7 @@
# Set STDC_HEADERS
AC_HEADER_STDC
-AC_LIBTOOL_WIN32_DLL
+# AC_LIBTOOL_WIN32_DLL
AM_PROG_LIBTOOL
AC_CHECK_HEADERS(sys/filio.h sys/sockio.h netdb.h utime.h)
@@ -78,7 +78,7 @@
AC_SUBST(GMODULE_CFLAGS)
AC_SUBST(GMODULE_LIBS)
-AC_CHECK_LIB(gc, GC_malloc, found_boehm="yes")
+AC_CHECK_LIB(gc, GC_malloc, found_boehm="yes",,-ldl)
gc=auto
AC_ARG_WITH(gc, [ --with-gc=boehm,none],[gc=$with_gc])
@@ -90,7 +90,7 @@
AC_DEFINE(HAVE_BOEHM_GC)
AC_SUBST(HAVE_BOEHM_GC)
- LIBS="$LIBS -lgc"
+ LIBS="$LIBS -lgc -ldl"
;;
xnone)
AC_MSG_WARN("Compiling mono without GC.")
Ciao,
Uli Kunitz
--
Ulrich Kunitz (gefm21@uumail.de)