diff --git a/pkgs/nanos6/default.nix b/pkgs/nanos6/default.nix index c419f2d..5e36771 100644 --- a/pkgs/nanos6/default.nix +++ b/pkgs/nanos6/default.nix @@ -48,6 +48,8 @@ let }; source = if (useGit) then git else release; + + isCross = stdenv.hostPlatform != stdenv.buildPlatform; in stdenv.mkDerivation (source // { pname = "nanos6"; @@ -72,9 +74,11 @@ in "--disable-all-instrumentations" "--enable-ovni-instrumentation" "--with-ovni=${ovni}" + "--with-boost=${boost.dev}" ] ++ (optional enableJemalloc "--with-jemalloc=${jemallocNanos6}") ++ - (optional enableGlibcxxDebug "CXXFLAGS=-D_GLIBCXX_DEBUG"); + (optional enableGlibcxxDebug "CXXFLAGS=-D_GLIBCXX_DEBUG") ++ + (optional isCross "--with-symbol-resolution=ifunc"); postConfigure = lib.optionalString (!enableDebug) '' # Disable debug