28 lines
695 B
Plaintext
28 lines
695 B
Plaintext
# Description: Garbage collection and memory leak detection for C and C++
|
|
# URL: https://hboehm.info/gc/
|
|
# Maintainer: Tim Biermann, tbier at posteo dot de
|
|
|
|
name=boehm-gc
|
|
version=8.2.6
|
|
release=1
|
|
source=(https://github.com/ivmai/bdwgc/releases/download/v$version/gc-$version.tar.gz
|
|
https://github.com/ivmai/libatomic_ops/releases/download/v7.8.2/libatomic_ops-7.8.2.tar.gz)
|
|
|
|
build () {
|
|
cd gc-$version
|
|
|
|
ln -s ../libatomic_ops-7.8.2 libatomic_ops
|
|
|
|
./configure \
|
|
--prefix=/usr \
|
|
--enable-threads=pthreads \
|
|
--enable-static \
|
|
--enable-shared
|
|
make
|
|
make DESTDIR=$PKG install
|
|
|
|
rm -r $PKG/usr/share/doc
|
|
|
|
install -D -m 644 doc/gc.man $PKG/usr/share/man/man3/gc.3
|
|
}
|