Skip to content

Commit f57f415

Browse files
committed
ath9k: fix build of old gmp by disabling compiler warnings (#408390)
2 parents 8226b30 + 472eb19 commit f57f415

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

pkgs/os-specific/linux/firmware/ath9k/default.nix

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,12 @@ stdenv.mkDerivation (finalAttrs: {
4747
perl
4848
];
4949

50-
env.NIX_CFLAGS_COMPILE = "-w"; # old libiberty emits fatal warnings
50+
env.NIX_CFLAGS_COMPILE =
51+
# old libiberty emits fatal warnings
52+
"-w"
53+
# old gmp fails to compile with newer gcc
54+
# FIXME remove when the normal version has moved on
55+
+ lib.optionalString (!enableUnstable) " -fpermissive";
5156

5257
dontUseCmakeConfigure = true;
5358
enableParallelBuilding = true;

0 commit comments

Comments
 (0)