[Buildroot] [PATCH 1/2] package/libgc: add Boehm-Demers-Weiser gc library

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Mon Apr 7 21:39:00 UTC 2014


Dear Alex Bennée,

On Mon,  7 Apr 2014 12:00:21 +0100, Alex Bennée wrote:

> diff --git a/package/libgc/Config.in b/package/libgc/Config.in
> new file mode 100644
> index 0000000..bac636c
> --- /dev/null
> +++ b/package/libgc/Config.in
> @@ -0,0 +1,9 @@
> +config BR2_PACKAGE_LIBGC
> +	bool "libgc"
> +	help
> +          The Boehm-Demers-Weiser conservative garbage collector can be used
> +          as a garbage collecting replacement for C malloc or C++ new. It allows
> +          you to allocate memory basically as you normally would, without
> +          explicitly deallocating memory that is no longer useful.
> +
> +          http://www.hboehm.info/gc/

Indentation for the help text should be one tab + two spaces.


> +################################################################################
> +#
> +# Boehm-Demers-Weiser's GC

We normally just want the package name here, i.e the same as the
directory name.

> +#
> +################################################################################
> +
> +LIBGC_VERSION = 7.4.0
> +LIBGC_SOURCE = gc-${LIBGC_VERSION}.tar.gz
> +LIBGC_SITE = http://www.hboehm.info/gc/gc_source/
> +LIBGC_EXTRA_DOWNLOADS = libatomic_ops-${LIBGC_VERSION}.tar.gz
> +LIBGC_LICENSE = GPLv1+
> +LIBGC_LICENSE_FILES = COPYING
> +LIBGC_INSTALL_STAGING = YES
> +
> +define LIBGC_POST_EXTRACT_INC_LIBATOMIC
> +	env
> +	mkdir -p $(@D)/libatomic_ops
> +	tar -xvf ${BR2_DL_DIR}/libatomic_ops-${LIBGC_VERSION}.tar.gz --strip-components=1 -C $(@D)/libatomic_ops
> +endef

We have a libatomic_ops package in Buildroot. Wouldn't it be possible
to use it instead?

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com


More information about the buildroot mailing list