redis: do not use jemalloc with musl (close #4100).

This commit is contained in:
Juan RP 2016-04-30 12:14:49 +02:00
parent c92b2adf23
commit 16e778e05c
1 changed files with 6 additions and 2 deletions

View File

@ -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