redis: do not use jemalloc with musl (close #4100).
This commit is contained in:
parent
c92b2adf23
commit
16e778e05c
1 changed files with 6 additions and 2 deletions
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'redis'
|
# Template file for 'redis'
|
||||||
pkgname=redis
|
pkgname=redis
|
||||||
version=3.0.7
|
version=3.0.7
|
||||||
revision=1
|
revision=2
|
||||||
makedepends="jemalloc-devel"
|
makedepends="jemalloc-devel"
|
||||||
homepage="http://redis.io"
|
homepage="http://redis.io"
|
||||||
distfiles="http://download.redis.io/releases/${pkgname}-${version}.tar.gz"
|
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
|
-e "s|^pidfile .*|pidfile /run/redis/redis.pid|" redis.conf
|
||||||
}
|
}
|
||||||
do_build() {
|
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() {
|
do_install() {
|
||||||
make INSTALL_BIN=${DESTDIR}/usr/bin PREFIX=/usr install
|
make INSTALL_BIN=${DESTDIR}/usr/bin PREFIX=/usr install
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue