[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


-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 @@
                LIBGC_LIBS="-lgc $libdl"
+               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