[Mono-dev] -lgc is needed in ldflags if using boehm-gc
Robert Nagy
robert at openbsd.org
Sun Apr 4 16:08:03 EDT 2010
Hey
-lgc has to be added to libmono_ldflags for example to get it in
the pkg-config file so that mkbundle and others will work.
Index: configure.in
===================================================================
--- configure.in (revision 154771)
+++ configure.in (working copy)
@@ -834,6 +834,7 @@
AC_SUBST(HAVE_BOEHM_GC)
LIBGC_LIBS="-lgc $libdl"
LIBGC_STATIC_LIBS="$LIBGC_LIBS"
+ libmono_ldflags="$libmono_ldflags -lgc"
# AC_CHECK_FUNCS does not work for some reason...
AC_CHECK_LIB(gc, GC_gcj_malloc, found_gcj_malloc="yes",,$libdl)
More information about the Mono-devel-list
mailing list