Fix w3m configure problem on non-chroot build env.

The configure script picks up libbsd.so from the host machine.
It uses simple find command to locate the file, but the linker
can not use it.

The fix replace the search path to /no-such-path
This commit is contained in:
Laszlo Nagy 2012-07-31 23:34:52 +02:00
parent 5300731177
commit ed8c4b0585

View file

@ -27,6 +27,7 @@ stdenv.mkDerivation rec {
configureFlags = "--with-ssl=${openssl} --with-gc=${boehmgc}";
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 /usr /no-such-path
'';