odroid-mali: new package
[buildroot-gz.git] / package / bdwgc / bdwgc.mk
blob0e9054df3c69c5a95a8212d8e68cf9270aa8c865
1 ################################################################################
3 # bdwgc
5 ################################################################################
7 BDWGC_VERSION = 7.4.2
8 BDWGC_SOURCE = gc-$(BDWGC_VERSION).tar.gz
9 BDWGC_SITE = http://www.hboehm.info/gc/gc_source
10 BDWGC_INSTALL_STAGING = YES
11 BDWGC_LICENSE = bdwgc license
12 BDWGC_LICENSE_FILES = README.QUICK
13 BDWGC_DEPENDENCIES = libatomic_ops host-pkgconf
14 HOST_BDWGC_DEPENDENCIES = host-libatomic_ops host-pkgconf
16 # The libtool shipped with the package is bogus and generates some
17 # -L/usr/lib flags. It uses a version not supported by Buildroot
18 # libtool patches, so autoreconfiguring the packages is the easiest
19 # solution.
20 BDWGC_AUTORECONF = YES
22 BDWGC_CFLAGS = $(TARGET_CFLAGS)
23 ifeq ($(BR2_sparc),y)
24 BDWGC_CFLAGS += -DAO_NO_SPARC_V9
25 endif
26 ifeq ($(BR2_STATIC_LIBS),y)
27 BDWGC_CFLAGS += -DGC_NO_DLOPEN
28 endif
30 # Ensure we use the system libatomic_ops, and not the internal one.
31 BDWGC_CONF_OPTS = --with-libatomic-ops=yes CFLAGS="$(BDWGC_CFLAGS)"
32 HOST_BDWGC_CONF_OPTS = --with-libatomic-ops=yes
34 $(eval $(autotools-package))
35 $(eval $(host-autotools-package))