Add support for nanos6 with jemalloc

This commit is contained in:
2020-10-19 18:42:41 +02:00
parent 81d144d716
commit ed8a6416a0
2 changed files with 18 additions and 0 deletions

View File

@@ -11,6 +11,8 @@
, extrae
, boost
, autoreconfHook
, enableJemalloc ? false
, jemalloc ? null
}:
with stdenv.lib;
@@ -38,6 +40,9 @@ stdenv.mkDerivation rec {
export NANOS6_GIT_BRANCH=${branch}
'';
configureFlags = [] ++
optional enableJemalloc "--with-jemalloc=${jemalloc}";
# The "bindnow" flags are incompatible with ifunc resolution mechanism. We
# disable all by default, which includes bindnow.
hardeningDisable = [ "all" ];