audit: pull upstream fix for -fno-common compiler

Fixes build failure against upstream gcc (defaults -fno-common).
This commit is contained in:
Sergei Trofimovich 2021-09-11 22:48:06 +01:00
parent d370d9ee99
commit 71890f5995

@ -37,7 +37,14 @@ stdenv.mkDerivation rec {
# TODO: Remove the musl patches when
# https://github.com/linux-audit/audit-userspace/pull/25
# is available with the next release.
patches = [ ./patches/weak-symbols.patch ]
patches = [
./patches/weak-symbols.patch
(fetchpatch {
# upstream build fix against -fno-common compilers like >=gcc-10
url = "https://github.com/linux-audit/audit-userspace/commit/017e6c6ab95df55f34e339d2139def83e5dada1f.patch";
sha256 = "100xa1rzkv0mvhjbfgpfm72f7c4p68syflvgc3xm6pxgrqqmfq8h";
})
]
++ lib.optional stdenv.hostPlatform.isMusl [
(
let patch = fetchpatch {