Merge pull request #112181 from bobrik/ivan/libpcap-no-explicit-arch
libpcap: disable universal build for libpcap on darwin
This commit is contained in:
commit
e9d8a612fb
|
@ -21,13 +21,11 @@ stdenv.mkDerivation rec {
|
||||||
linux = "linux";
|
linux = "linux";
|
||||||
darwin = "bpf";
|
darwin = "bpf";
|
||||||
}.${stdenv.hostPlatform.parsed.kernel.name})
|
}.${stdenv.hostPlatform.parsed.kernel.name})
|
||||||
|
] ++ optionals stdenv.isDarwin [
|
||||||
|
"--disable-universal"
|
||||||
] ++ optionals (stdenv.hostPlatform == stdenv.buildPlatform)
|
] ++ optionals (stdenv.hostPlatform == stdenv.buildPlatform)
|
||||||
[ "ac_cv_linux_vers=2" ];
|
[ "ac_cv_linux_vers=2" ];
|
||||||
|
|
||||||
prePatch = optionalString stdenv.isDarwin ''
|
|
||||||
substituteInPlace configure --replace " -arch i386" ""
|
|
||||||
'';
|
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
if [ "$dontDisableStatic" -ne "1" ]; then
|
if [ "$dontDisableStatic" -ne "1" ]; then
|
||||||
rm -f $out/lib/libpcap.a
|
rm -f $out/lib/libpcap.a
|
||||||
|
|
Loading…
Reference in New Issue