The GC package contains the Boehm-Demers-Weiser conservative garbage collector, which can be used as a garbage collecting replacement for the C malloc function or C++ new operator. It allows you to allocate memory basically as you normally would, without explicitly deallocating memory that is no longer useful. The collector automatically recycles memory when it determines that it can no longer be otherwise accessed. The collector is also used by a number of programming language implementations that either use C as intermediate code, want to facilitate easier interoperation with C libraries, or just prefer the simple collector interface. Alternatively, the garbage collector may be used as a leak detector for C or C++ programs, though that is not its primary goal.
This package is known to build and work properly using an LFS-7.2 platform.
Download MD5 sum: 91340b28c61753a789eb6077675d87d2
Download size: 1.3 MB
Estimated disk space required: 13 MB
Estimated build time: 0.2 SBU
libatomic_ops-7.2d (Gc contains a copy of Libatomic_ops-7.2d which it will compile and statically link if configure doesn't find Libatomic_ops installed on your system)
User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/gc
Install GC by running the following commands:
sed -i 's#AM_CONFIG_HEADER#AC_CONFIG_HEADERS#' configure.ac && sed -i 's#AM_CONFIG_HEADER#AC_CONFIG_HEADERS#' libatomic_ops/configure.ac && sed -i 's#pkgdata#doc#' doc/doc.am && autoreconf -fi && ./configure --prefix=/usr \ --enable-cplusplus \ --disable-static \ --docdir=/usr/share/doc/gc-7.2d && make
To test the results, issue: make check.
Now, as the
make install && install -v -m644 doc/gc.man /usr/share/man/man3/gc_malloc.3 && ln -sfv gc_malloc.3 /usr/share/man/man3/gc.3
sed -i 's#AM_CONFIG_HEADER ...: This sed fixes building with Automake 1.13.
sed -i 's#pkgdata#doc#'
--docdir=/usr/share/doc/gc-7.2d: These commands are
used so the package will install the documentation in a versioned
autoreconf -fi: This
regenerates the configure script and the
parameter enables the building and installing the C++ library along
with the standard C library.
switch prevents installation of static versions of the libraries.
Last updated on 2013-03-25 11:15:03 +0000