2014-11-24 23:56:28 +01:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# bdwgc
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2017-05-21 19:41:03 +02:00
|
|
|
BDWGC_VERSION = 7.6.0
|
2014-11-24 23:56:28 +01:00
|
|
|
BDWGC_SOURCE = gc-$(BDWGC_VERSION).tar.gz
|
|
|
|
BDWGC_SITE = http://www.hboehm.info/gc/gc_source
|
|
|
|
BDWGC_INSTALL_STAGING = YES
|
|
|
|
BDWGC_LICENSE = bdwgc license
|
|
|
|
BDWGC_LICENSE_FILES = README.QUICK
|
|
|
|
BDWGC_DEPENDENCIES = libatomic_ops host-pkgconf
|
2016-07-03 00:20:32 +02:00
|
|
|
HOST_BDWGC_DEPENDENCIES = host-libatomic_ops host-pkgconf
|
2014-11-24 23:56:28 +01:00
|
|
|
|
|
|
|
# The libtool shipped with the package is bogus and generates some
|
|
|
|
# -L/usr/lib flags. It uses a version not supported by Buildroot
|
|
|
|
# libtool patches, so autoreconfiguring the packages is the easiest
|
|
|
|
# solution.
|
|
|
|
BDWGC_AUTORECONF = YES
|
|
|
|
|
2015-03-02 12:53:53 +01:00
|
|
|
BDWGC_CFLAGS = $(TARGET_CFLAGS)
|
2015-12-04 06:33:11 +01:00
|
|
|
ifeq ($(BR2_sparc),y)
|
|
|
|
BDWGC_CFLAGS += -DAO_NO_SPARC_V9
|
|
|
|
endif
|
2015-03-02 12:53:53 +01:00
|
|
|
ifeq ($(BR2_STATIC_LIBS),y)
|
|
|
|
BDWGC_CFLAGS += -DGC_NO_DLOPEN
|
|
|
|
endif
|
|
|
|
|
2014-11-24 23:56:28 +01:00
|
|
|
# Ensure we use the system libatomic_ops, and not the internal one.
|
2015-03-02 12:53:53 +01:00
|
|
|
BDWGC_CONF_OPTS = --with-libatomic-ops=yes CFLAGS="$(BDWGC_CFLAGS)"
|
2014-11-24 23:56:28 +01:00
|
|
|
HOST_BDWGC_CONF_OPTS = --with-libatomic-ops=yes
|
|
|
|
|
|
|
|
$(eval $(autotools-package))
|
|
|
|
$(eval $(host-autotools-package))
|