2021-10-31 13:08:00 +11:00
|
|
|
# Description: General-purpose scalable concurrent allocator
|
|
|
|
# URL: http://jemalloc.net/
|
2023-08-18 19:36:44 +02:00
|
|
|
# Maintainer: unmaintained
|
2021-10-31 13:08:00 +11:00
|
|
|
# Optional: clang lld
|
|
|
|
|
|
|
|
name=jemalloc
|
2022-06-01 09:43:47 +02:00
|
|
|
version=5.3.0
|
2021-10-31 13:08:00 +11:00
|
|
|
release=1
|
2023-08-18 19:36:44 +02:00
|
|
|
source=(https://github.com/jemalloc/jemalloc/releases/download/$version/$name-$version.tar.bz2)
|
2021-10-31 13:08:00 +11:00
|
|
|
|
|
|
|
build() {
|
2023-08-18 19:36:44 +02:00
|
|
|
cd $name-$version
|
2021-10-31 13:08:00 +11:00
|
|
|
|
2023-08-18 19:36:44 +02:00
|
|
|
export CFLAGS+=' -O3'
|
|
|
|
prt-get isinst clang lld && LDFLAGS+=' -fuse-ld=lld -flto=thin'
|
|
|
|
prt-get isinst clang && export CC=clang CXX=clang++ AR=llvm-ar NM=llvm-nm RANLIB=llvm-ranlib || \
|
|
|
|
export CC=gcc CXX=g++
|
2021-10-31 13:08:00 +11:00
|
|
|
|
2023-08-18 19:36:44 +02:00
|
|
|
./configure --prefix=/usr
|
|
|
|
make
|
|
|
|
make DESTDIR=$PKG install
|
2021-10-31 13:08:00 +11:00
|
|
|
|
2023-08-18 19:36:44 +02:00
|
|
|
rm -r $PKG/usr/share/doc
|
2021-10-31 13:08:00 +11:00
|
|
|
}
|