2014-11-24 23:56:28 +01:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# bdwgc
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2022-10-30 18:26:39 +01:00
|
|
|
BDWGC_VERSION = 8.2.2
|
2014-11-24 23:56:28 +01:00
|
|
|
BDWGC_SOURCE = gc-$(BDWGC_VERSION).tar.gz
|
2021-11-14 14:34:36 +01:00
|
|
|
BDWGC_SITE = https://github.com/ivmai/bdwgc/releases/download/v$(BDWGC_VERSION)
|
2014-11-24 23:56:28 +01:00
|
|
|
BDWGC_INSTALL_STAGING = YES
|
|
|
|
BDWGC_LICENSE = bdwgc license
|
|
|
|
BDWGC_LICENSE_FILES = README.QUICK
|
2021-03-05 23:27:44 +01:00
|
|
|
BDWGC_CPE_ID_VENDOR = bdwgc_project
|
2014-11-24 23:56:28 +01:00
|
|
|
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
|
|
|
|
2018-10-25 21:13:16 +02:00
|
|
|
BDWGC_CONF_OPTS = CFLAGS_EXTRA="$(BDWGC_CFLAGS_EXTRA)"
|
2015-12-04 06:33:11 +01:00
|
|
|
ifeq ($(BR2_sparc),y)
|
2018-10-25 21:13:16 +02:00
|
|
|
BDWGC_CFLAGS_EXTRA += -DAO_NO_SPARC_V9
|
2015-12-04 06:33:11 +01:00
|
|
|
endif
|
2015-03-02 12:53:53 +01:00
|
|
|
ifeq ($(BR2_STATIC_LIBS),y)
|
2018-10-25 21:13:16 +02:00
|
|
|
BDWGC_CFLAGS_EXTRA += -DGC_NO_DLOPEN
|
2015-03-02 12:53:53 +01:00
|
|
|
endif
|
2022-06-26 12:06:17 +02:00
|
|
|
ifeq ($(BR2_TOOLCHAIN_HAS_THREADS_NPTL),)
|
|
|
|
BDWGC_CFLAGS_EXTRA += -DNO_PTHREAD_GETATTR_NP
|
|
|
|
endif
|
2015-03-02 12:53:53 +01:00
|
|
|
|
2014-11-24 23:56:28 +01:00
|
|
|
# Ensure we use the system libatomic_ops, and not the internal one.
|
2018-10-25 21:13:16 +02:00
|
|
|
BDWGC_CONF_OPTS += --with-libatomic-ops=yes
|
2014-11-24 23:56:28 +01:00
|
|
|
HOST_BDWGC_CONF_OPTS = --with-libatomic-ops=yes
|
|
|
|
|
2018-10-25 21:13:16 +02:00
|
|
|
ifeq ($(BR2_INSTALL_LIBSTDCPP),y)
|
|
|
|
BDWGC_CONF_OPTS += --enable-cplusplus
|
|
|
|
else
|
|
|
|
BDWGC_CONF_OPTS += --disable-cplusplus
|
|
|
|
endif
|
|
|
|
|
2014-11-24 23:56:28 +01:00
|
|
|
$(eval $(autotools-package))
|
|
|
|
$(eval $(host-autotools-package))
|