iproute2: fix building for musl with GCC 14

This commit is contained in:
Alyssa Ross
2024-09-15 10:14:53 +02:00
parent 3fbe70f3be
commit 259cc0548e
@@ -13,6 +13,19 @@ stdenv.mkDerivation rec {
hash = "sha256-kaYvgnN7RJBaAPqAM2nER9VJ6RTpoqQBj911sdVOjc4=";
};
patches = [
(fetchurl {
name = "musl-endian.patch";
url = "https://lore.kernel.org/netdev/20240712191209.31324-1-contact@hacktivis.me/raw";
hash = "sha256-MX+P+PSEh6XlhoWgzZEBlOV9aXhJNd20Gi0fJCcSZ5E=";
})
(fetchurl {
name = "musl-msghdr.patch";
url = "https://lore.kernel.org/netdev/20240712191209.31324-2-contact@hacktivis.me/raw";
hash = "sha256-X5BYSZBxcvdjtX1069a1GfcpdoVd0loSAe4xTpbCipA=";
})
];
postPatch = ''
substituteInPlace Makefile \
--replace "CC := gcc" "CC ?= $CC"