gperftools: fix build on ARM
The use of libunwind by tcmalloc segfaults on ARM, so don't use that. See eg https://www.dcddcc.com/blog/2018-06-09-building-mongodb-for-32-bit-ARM-on-debian-ubuntu.html#problem-6-tcmalloc-and-libunwind
This commit is contained in:
parent
0512c8f313
commit
eb1ce34d3d
@ -8,7 +8,8 @@ stdenv.mkDerivation rec {
|
|||||||
sha256 = "1jb30zxmw7h9qxa8yi76rfxj4ssk60rv8n9y41m6pzqfk9lwis0y";
|
sha256 = "1jb30zxmw7h9qxa8yi76rfxj4ssk60rv8n9y41m6pzqfk9lwis0y";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = stdenv.lib.optional stdenv.isLinux libunwind;
|
# tcmalloc uses libunwind in a way that works correctly only on non-ARM linux
|
||||||
|
buildInputs = stdenv.lib.optional (stdenv.isLinux && !(stdenv.isAarch64 || stdenv.isAarch32)) libunwind;
|
||||||
|
|
||||||
prePatch = stdenv.lib.optionalString stdenv.isDarwin ''
|
prePatch = stdenv.lib.optionalString stdenv.isDarwin ''
|
||||||
substituteInPlace Makefile.am --replace stdc++ c++
|
substituteInPlace Makefile.am --replace stdc++ c++
|
||||||
|
Loading…
x
Reference in New Issue
Block a user