xref: /OK3568_Linux_fs/buildroot/package/bdwgc/bdwgc.mk (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun################################################################################
2*4882a593Smuzhiyun#
3*4882a593Smuzhiyun# bdwgc
4*4882a593Smuzhiyun#
5*4882a593Smuzhiyun################################################################################
6*4882a593Smuzhiyun
7*4882a593SmuzhiyunBDWGC_VERSION = 8.0.4
8*4882a593SmuzhiyunBDWGC_SOURCE = gc-$(BDWGC_VERSION).tar.gz
9*4882a593SmuzhiyunBDWGC_SITE = http://www.hboehm.info/gc/gc_source
10*4882a593SmuzhiyunBDWGC_INSTALL_STAGING = YES
11*4882a593SmuzhiyunBDWGC_LICENSE = bdwgc license
12*4882a593SmuzhiyunBDWGC_LICENSE_FILES = README.QUICK
13*4882a593SmuzhiyunBDWGC_CPE_ID_VENDOR = bdwgc_project
14*4882a593SmuzhiyunBDWGC_DEPENDENCIES = libatomic_ops host-pkgconf
15*4882a593SmuzhiyunHOST_BDWGC_DEPENDENCIES = host-libatomic_ops host-pkgconf
16*4882a593Smuzhiyun
17*4882a593SmuzhiyunBDWGC_CONF_OPTS = CFLAGS_EXTRA="$(BDWGC_CFLAGS_EXTRA)"
18*4882a593Smuzhiyunifeq ($(BR2_sparc),y)
19*4882a593SmuzhiyunBDWGC_CFLAGS_EXTRA += -DAO_NO_SPARC_V9
20*4882a593Smuzhiyunendif
21*4882a593Smuzhiyunifeq ($(BR2_STATIC_LIBS),y)
22*4882a593SmuzhiyunBDWGC_CFLAGS_EXTRA += -DGC_NO_DLOPEN
23*4882a593Smuzhiyunendif
24*4882a593Smuzhiyun
25*4882a593Smuzhiyun# Ensure we use the system libatomic_ops, and not the internal one.
26*4882a593SmuzhiyunBDWGC_CONF_OPTS += --with-libatomic-ops=yes
27*4882a593SmuzhiyunHOST_BDWGC_CONF_OPTS = --with-libatomic-ops=yes
28*4882a593Smuzhiyun
29*4882a593Smuzhiyunifeq ($(BR2_INSTALL_LIBSTDCPP),y)
30*4882a593SmuzhiyunBDWGC_CONF_OPTS += --enable-cplusplus
31*4882a593Smuzhiyunelse
32*4882a593SmuzhiyunBDWGC_CONF_OPTS += --disable-cplusplus
33*4882a593Smuzhiyunendif
34*4882a593Smuzhiyun
35*4882a593Smuzhiyun$(eval $(autotools-package))
36*4882a593Smuzhiyun$(eval $(host-autotools-package))
37