qemu-nix: Build statically

This commit is contained in:
William A. Kennington III
2015-06-01 01:49:57 -07:00
parent 7edb27b7af
commit 5afa4f18d6
2 changed files with 12 additions and 5 deletions

View File

@@ -63,8 +63,9 @@ stdenv.mkDerivation rec {
propagatedBuildInputs = [ pcre zlib libffi libiconv ]
++ libintlOrEmpty;
configureFlags =
optional stdenv.isDarwin "--disable-compile-warnings"
# Static is necessary for qemu-nix to support static userspace translators
configureFlags = [ "--enable-static" ]
++ optional stdenv.isDarwin "--disable-compile-warnings"
++ optional stdenv.isSunOS "--disable-modular-tests";
NIX_CFLAGS_COMPILE = optionalString stdenv.isDarwin " -lintl"
@@ -75,6 +76,8 @@ stdenv.mkDerivation rec {
export MACOSX_DEPLOYMENT_TARGET=
'';
dontDisableStatic = true;
enableParallelBuilding = true;
DETERMINISTIC_BUILD = 1;