summary refs log tree commit diff
path: root/pkgs/applications
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2017-12-10 13:40:18 -0500
committerWill Dietz <w@wdtz.org>2018-02-13 09:44:26 -0600
commitd72c4c694ffac76d8cc20813c8b9dc2a11ad46a9 (patch)
tree19c9905612f57200c7a45afda27bcb0544a08a62 /pkgs/applications
parentdf5b0ce589f369dbc10c23f5dadd57f8e9b669c2 (diff)
downloadnixpkgs-d72c4c694ffac76d8cc20813c8b9dc2a11ad46a9.tar
nixpkgs-d72c4c694ffac76d8cc20813c8b9dc2a11ad46a9.tar.gz
nixpkgs-d72c4c694ffac76d8cc20813c8b9dc2a11ad46a9.tar.bz2
nixpkgs-d72c4c694ffac76d8cc20813c8b9dc2a11ad46a9.tar.lz
nixpkgs-d72c4c694ffac76d8cc20813c8b9dc2a11ad46a9.tar.xz
nixpkgs-d72c4c694ffac76d8cc20813c8b9dc2a11ad46a9.tar.zst
nixpkgs-d72c4c694ffac76d8cc20813c8b9dc2a11ad46a9.zip
w3m: Enable cross-compilation
Diffstat (limited to 'pkgs/applications')
-rw-r--r--pkgs/applications/networking/browsers/w3m/default.nix8
1 files changed, 6 insertions, 2 deletions
diff --git a/pkgs/applications/networking/browsers/w3m/default.nix b/pkgs/applications/networking/browsers/w3m/default.nix
index 83819761e9b..c71ccdf8a0d 100644
--- a/pkgs/applications/networking/browsers/w3m/default.nix
+++ b/pkgs/applications/networking/browsers/w3m/default.nix
@@ -53,8 +53,12 @@ stdenv.mkDerivation rec {
 
   hardeningDisable = [ "format" ];
 
-  configureFlags = "--with-ssl=${openssl.dev} --with-gc=${boehmgc.dev}"
-    + optionalString graphicsSupport " --enable-image=${optionalString x11Support "x11,"}fb";
+  configureFlags =
+    [ "--with-ssl=${openssl.dev}" "--with-gc=${boehmgc.dev}" ]
+    ++ optionals (stdenv.buildPlatform != stdenv.hostPlatform) [
+      "ac_cv_func_setpgrp_void=yes"
+    ]
+    ++ optional graphicsSupport "--enable-image=${optionalString x11Support "x11,"}fb";
 
   preConfigure = ''
     substituteInPlace ./configure --replace "/lib /usr/lib /usr/local/lib /usr/ucblib /usr/ccslib /usr/ccs/lib /lib64 /usr/lib64" /no-such-path