redis: do not use jemalloc with musl (close #4100).
This commit is contained in:
parent
c92b2adf23
commit
16e778e05c
|
@ -1,7 +1,7 @@
|
|||
# Template file for 'redis'
|
||||
pkgname=redis
|
||||
version=3.0.7
|
||||
revision=1
|
||||
revision=2
|
||||
makedepends="jemalloc-devel"
|
||||
homepage="http://redis.io"
|
||||
distfiles="http://download.redis.io/releases/${pkgname}-${version}.tar.gz"
|
||||
|
@ -21,7 +21,11 @@ do_configure() {
|
|||
-e "s|^pidfile .*|pidfile /run/redis/redis.pid|" redis.conf
|
||||
}
|
||||
do_build() {
|
||||
make CC=$CC CFLAGS="$CFLAGS" ${makejobs}
|
||||
case "$XBPS_TARGET_MACHINE" in
|
||||
*-musl) _malloc="none";;
|
||||
*) _malloc="jemalloc";;
|
||||
esac
|
||||
make CC=$CC CFLAGS="$CFLAGS" MALLOC=${_jemalloc} ${makejobs}
|
||||
}
|
||||
do_install() {
|
||||
make INSTALL_BIN=${DESTDIR}/usr/bin PREFIX=/usr install
|
||||
|
|
Loading…
Reference in New Issue