summary refs log tree commit diff
path: root/pkgs/development/interpreters
diff options
context:
space:
mode:
authorMathijs Kwik <mathijs@bluescreen303.nl>2014-10-22 16:17:44 +0200
committerMathijs Kwik <mathijs@bluescreen303.nl>2014-10-22 16:20:43 +0200
commit6af6bd9b515d2a3437a0a801e07a4b1421556c64 (patch)
tree9de141d2f26155b30b08c35d48da3b4e838606fe /pkgs/development/interpreters
parent2140adf11fe72d9f1370f262b1373af6ff4f8a3a (diff)
downloadnixpkgs-6af6bd9b515d2a3437a0a801e07a4b1421556c64.tar
nixpkgs-6af6bd9b515d2a3437a0a801e07a4b1421556c64.tar.gz
nixpkgs-6af6bd9b515d2a3437a0a801e07a4b1421556c64.tar.bz2
nixpkgs-6af6bd9b515d2a3437a0a801e07a4b1421556c64.tar.lz
nixpkgs-6af6bd9b515d2a3437a0a801e07a4b1421556c64.tar.xz
nixpkgs-6af6bd9b515d2a3437a0a801e07a4b1421556c64.tar.zst
nixpkgs-6af6bd9b515d2a3437a0a801e07a4b1421556c64.zip
xulrunner: fix for building on i686
Diffstat (limited to 'pkgs/development/interpreters')
-rw-r--r--pkgs/development/interpreters/xulrunner/default.nix7
1 files changed, 4 insertions, 3 deletions
diff --git a/pkgs/development/interpreters/xulrunner/default.nix b/pkgs/development/interpreters/xulrunner/default.nix
index 68ee5240220..4dd1095c0ce 100644
--- a/pkgs/development/interpreters/xulrunner/default.nix
+++ b/pkgs/development/interpreters/xulrunner/default.nix
@@ -55,9 +55,10 @@ stdenv.mkDerivation rec {
       "--disable-updater"
       "--disable-pulseaudio"
     ]
-    ++ (if debugBuild then [ "--enable-debug" "--enable-profiling"]
-                      else [ "--disable-debug" "--enable-release"
-                             "--enable-optimize" "--enable-strip" ]);
+    ++ (if debugBuild
+        then [ "--enable-debug" "--enable-profiling"]
+        else [ "--disable-debug" "--enable-release" "--enable-strip"
+               "--enable-optimize${lib.optionalString (stdenv.system == "i686-linux") "=-O1"}" ]);
 
   enableParallelBuilding = true;