ath9k: fix build of old gmp by disabling compiler warnings

This commit is contained in:
Atemu
2025-05-18 15:37:06 +02:00
parent 04634258c6
commit 472eb192b0
@@ -47,7 +47,12 @@ stdenv.mkDerivation (finalAttrs: {
perl
];
env.NIX_CFLAGS_COMPILE = "-w"; # old libiberty emits fatal warnings
env.NIX_CFLAGS_COMPILE =
# old libiberty emits fatal warnings
"-w"
# old gmp fails to compile with newer gcc
# FIXME remove when the normal version has moved on
+ lib.optionalString (!enableUnstable) " -fpermissive";
dontUseCmakeConfigure = true;
enableParallelBuilding = true;