Merge pull request #174017 from trofi/fix-fno-common-for-netperf

netperf: pull patch pending upstream inclusion for -fno-common toolch…
This commit is contained in:
Sergei Trofimovich 2022-05-30 21:55:03 +00:00 committed by GitHub
commit facee525a1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,4 +1,4 @@
{ libsmbios, lib, stdenv, autoreconfHook, fetchFromGitHub }:
{ libsmbios, lib, stdenv, autoreconfHook, fetchFromGitHub, fetchpatch }:
stdenv.mkDerivation {
pname = "netperf";
@ -11,6 +11,16 @@ stdenv.mkDerivation {
sha256 = "s4G1ZN+6LERdEMDkc+12ZQgTi6K+ppUYUCGn4faCS9c=";
};
patches = [
# Pul fix pending upstream inclusion for -fno-common toolchains:
# https://github.com/HewlettPackard/netperf/pull/46
(fetchpatch {
name = "fno-common.patch";
url = "https://github.com/HewlettPackard/netperf/commit/c6a2e17fe35f0e68823451fedfdf5b1dbecddbe3.patch";
sha256 = "P/lRa6EakSalKWDTgZ7bWeGleaTLLa5UhzulxKd1xE4=";
})
];
buildInputs = lib.optional (with stdenv.hostPlatform; isx86 && isLinux) libsmbios;
nativeBuildInputs = [ autoreconfHook ];
autoreconfPhase = ''