xref: /OK3568_Linux_fs/yocto/meta-openembedded/meta-oe/recipes-support/bdwgc/bdwgc_8.2.0.bb (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunSUMMARY = "A garbage collector for C and C++"
2*4882a593Smuzhiyun
3*4882a593SmuzhiyunDESCRIPTION = "The Boehm-Demers-Weiser conservative garbage collector can be\
4*4882a593Smuzhiyun used as a garbage collecting replacement for C malloc or C++ new. It allows\
5*4882a593Smuzhiyun you to allocate memory basically as you normally would, without explicitly\
6*4882a593Smuzhiyun deallocating memory that is no longer useful. The collector automatically\
7*4882a593Smuzhiyun recycles memory when it determines that it can no longer be otherwise\
8*4882a593Smuzhiyun accessed.\
9*4882a593Smuzhiyun  The collector is also used by a number of programming language\
10*4882a593Smuzhiyun implementations that either use C as intermediate code, want to facilitate\
11*4882a593Smuzhiyun easier interoperation with C libraries, or just prefer the simple collector\
12*4882a593Smuzhiyun interface.\
13*4882a593Smuzhiyun  Alternatively, the garbage collector may be used as a leak detector for C\
14*4882a593Smuzhiyun or C++ programs, though that is not its primary goal.\
15*4882a593Smuzhiyun  Empirically, this collector works with most unmodified C programs, simply\
16*4882a593Smuzhiyun by replacing malloc with GC_malloc calls, replacing realloc with GC_realloc\
17*4882a593Smuzhiyun calls, and removing free calls."
18*4882a593Smuzhiyun
19*4882a593SmuzhiyunHOMEPAGE = "http://www.hboehm.info/gc/"
20*4882a593SmuzhiyunSECTION = "devel"
21*4882a593SmuzhiyunLICENSE = "MIT"
22*4882a593SmuzhiyunLIC_FILES_CHKSUM = "file://README.QUICK;md5=7912d9213b3547f8a81aadd08893fe84"
23*4882a593Smuzhiyun
24*4882a593SmuzhiyunDEPENDS = "libatomic-ops"
25*4882a593Smuzhiyun
26*4882a593SmuzhiyunSRCREV = "47e9106c17b72e9ee5501308f69ea94531e798b3"
27*4882a593SmuzhiyunSRC_URI = "git://github.com/ivmai/bdwgc.git;branch=master;protocol=https"
28*4882a593Smuzhiyun
29*4882a593SmuzhiyunS = "${WORKDIR}/git"
30*4882a593Smuzhiyun
31*4882a593Smuzhiyuninherit autotools pkgconfig
32*4882a593Smuzhiyun
33*4882a593SmuzhiyunEXTRA_OECONF += "--enable-cpluscplus"
34*4882a593Smuzhiyun
35*4882a593SmuzhiyunCFLAGS:append:libc-musl = " -D_GNU_SOURCE -DNO_GETCONTEXT -DSEARCH_FOR_DATA_START -DUSE_MMAP -DHAVE_DL_ITERATE_PHDR"
36*4882a593Smuzhiyun
37*4882a593SmuzhiyunFILES:${PN}-doc = "${datadir}"
38*4882a593Smuzhiyun
39*4882a593SmuzhiyunBBCLASSEXTEND = "native nativesdk"
40