[Nix-dev] BDW-GC
Ludovic Courtès
ludo at gnu.org
Sun Oct 24 13:06:42 CEST 2010
Hi Eelco,
Eelco Dolstra <e.dolstra at tudelft.nl> writes:
> +# Whether to use the Boehm garbage collector.
> +AC_ARG_WITH(boehm-gc, AC_HELP_STRING([--with-boehm-gc=PATH],
> + [prefix of the Boehm GC package to enable garbage collection in the Nix expression evaluator]),
> + boehmgc=$withval, boehmgc=)
> +if test -n "$boehmgc"; then
> + boehmgc_lib="-L$boehmgc/lib -lgc"
> + CXXFLAGS="-I$boehmgc/include $CXXFLAGS"
> + AC_DEFINE(HAVE_BOEHMGC, 1, [Whether to use the Boehm garbage collector.])
> +fi
> +AC_SUBST(boehmgc_lib)
> +AC_SUBST(boehmgc_include)
With libgc 7.x, the recommended way is ‘pkg-config’:
PKG_CHECK_MODULES([BDW_GC], [bdw-gc])
LIBS="$BDW_GC_LIBS $LIBS"
CFLAGS="$BDW_GC_CFLAGS $CFLAGS"
Thanks,
Ludo’.
More information about the nix-dev
mailing list