jemalloc: Fix jemalloc prefix for applications which expect ^malloc

This commit is contained in:
William A. Kennington III
2015-09-23 20:48:14 -07:00
parent 7c149b86c3
commit 5856e44258
2 changed files with 4 additions and 5 deletions
@@ -138,6 +138,10 @@ stdenv.mkDerivation {
sed -i configure \
-e '/probe_need CFG_CURLORWGET/d'
# Fix the use of jemalloc prefixes which our jemalloc doesn't have
[ -f src/liballoc_jemalloc/lib.rs ] && sed -i 's,je_,,g' src/liballoc_jemalloc/lib.rs
[ -f src/liballoc/heap.rs ] && sed -i 's,je_,,g' src/liballoc/heap.rs # Remove for 1.4.0+
# Useful debugging parameter
#export VERBOSE=1
'';