lsof: fix for cross
This commit is contained in:
parent
3fe8e610f0
commit
fffd72cb56
|
@ -1,4 +1,4 @@
|
|||
{ stdenv, fetchurl, ncurses }:
|
||||
{ stdenv, fetchurl, buildPackages, ncurses }:
|
||||
|
||||
let dialect = with stdenv.lib; last (splitString "-" stdenv.system); in
|
||||
|
||||
|
@ -6,6 +6,7 @@ stdenv.mkDerivation rec {
|
|||
name = "lsof-${version}";
|
||||
version = "4.89";
|
||||
|
||||
depsBuildBuild = [ buildPackages.stdenv.cc ];
|
||||
buildInputs = [ ncurses ];
|
||||
|
||||
src = fetchurl {
|
||||
|
@ -31,7 +32,7 @@ stdenv.mkDerivation rec {
|
|||
|
||||
# Stop build scripts from searching global include paths
|
||||
LSOF_INCLUDE = "${stdenv.cc.libc}/include";
|
||||
configurePhase = "./Configure -n ${dialect}";
|
||||
configurePhase = "LINUX_CONF_CC=$CC_FOR_BUILD LSOF_CC=$CC LSOF_AR=\"$AR cr\" LSOF_RANLIB=$RANLIB ./Configure -n ${dialect}";
|
||||
preBuild = ''
|
||||
sed -i Makefile -e 's/^CFGF=/& -DHASIPv6=1/;' -e 's/-lcurses/-lncurses/'
|
||||
for filepath in $(find dialects/${dialect} -type f); do
|
||||
|
|
Loading…
Reference in New Issue