Revert "libpcap: support static build"

This reverts commit ee6ca494d2.
This commit is contained in:
Nikolay Amiantov 2016-01-12 17:13:31 +03:00
parent bbfbadf327
commit e9597ff555
1 changed files with 4 additions and 7 deletions

View File

@ -1,6 +1,4 @@
{ stdenv, fetchurl, flex, bison
, enableStatic ? false
}:
{ stdenv, fetchurl, flex, bison }:
stdenv.mkDerivation rec {
name = "libpcap-1.7.4";
@ -15,10 +13,9 @@ stdenv.mkDerivation rec {
# We need to force the autodetection because detection doesn't
# work in pure build enviroments.
configureFlags =
(if stdenv.isLinux then [ "--with-pcap=linux" ]
if stdenv.isLinux then [ "--with-pcap=linux" ]
else if stdenv.isDarwin then [ "--with-pcap=bpf" ]
else [])
++ stdenv.lib.optional enableStatic "--enable-static";
else [];
prePatch = stdenv.lib.optionalString stdenv.isDarwin ''
substituteInPlace configure --replace " -arch i386" ""