w3m: Enable cross-compilation
This commit is contained in:
parent
df5b0ce589
commit
d72c4c694f
@ -53,8 +53,12 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
hardeningDisable = [ "format" ];
|
hardeningDisable = [ "format" ];
|
||||||
|
|
||||||
configureFlags = "--with-ssl=${openssl.dev} --with-gc=${boehmgc.dev}"
|
configureFlags =
|
||||||
+ optionalString graphicsSupport " --enable-image=${optionalString x11Support "x11,"}fb";
|
[ "--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 = ''
|
preConfigure = ''
|
||||||
substituteInPlace ./configure --replace "/lib /usr/lib /usr/local/lib /usr/ucblib /usr/ccslib /usr/ccs/lib /lib64 /usr/lib64" /no-such-path
|
substituteInPlace ./configure --replace "/lib /usr/lib /usr/local/lib /usr/ucblib /usr/ccslib /usr/ccs/lib /lib64 /usr/lib64" /no-such-path
|
||||||
|
Loading…
x
Reference in New Issue
Block a user