Made tcpdump crossbuild.

svn path=/nixpkgs/trunk/; revision=20543
This commit is contained in:
Lluís Batlle i Rossell
2010-03-10 22:22:43 +00:00
parent 5b7f1ef09a
commit 4a44d32444
3 changed files with 33 additions and 2 deletions

View File

@@ -8,11 +8,17 @@ stdenv.mkDerivation rec {
sha256 = "1h3kmj485qz1i08xs4sc3a0bmhs1rvq0h7gycs7paap2szhw8552";
};
buildInputs = [ flex bison ];
buildNativeInputs = [ flex bison ];
configureFlags = "--with-pcap=linux";
preInstall = ''ensureDir $out/bin'';
patches = [ ./libpcap_amd64.patch ];
crossAttrs = {
# Stripping hurts in static libraries
dontStrip = true;
configureFlags = [ "--with-pcap=linux" "ac_cv_linux_vers=2" ];
};
}