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:
commit
facee525a1
1 changed files with 11 additions and 1 deletions
|
@ -1,4 +1,4 @@
|
||||||
{ libsmbios, lib, stdenv, autoreconfHook, fetchFromGitHub }:
|
{ libsmbios, lib, stdenv, autoreconfHook, fetchFromGitHub, fetchpatch }:
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
pname = "netperf";
|
pname = "netperf";
|
||||||
|
@ -11,6 +11,16 @@ stdenv.mkDerivation {
|
||||||
sha256 = "s4G1ZN+6LERdEMDkc+12ZQgTi6K+ppUYUCGn4faCS9c=";
|
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;
|
buildInputs = lib.optional (with stdenv.hostPlatform; isx86 && isLinux) libsmbios;
|
||||||
nativeBuildInputs = [ autoreconfHook ];
|
nativeBuildInputs = [ autoreconfHook ];
|
||||||
autoreconfPhase = ''
|
autoreconfPhase = ''
|
||||||
|
|
Loading…
Reference in a new issue