wol: fix clang build with gnu17 flag
Co-authored-by: dotlambda <github@dotlambda.de>
This commit is contained in:
@@ -21,6 +21,11 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
./macos-10_7-getline.patch
|
||||
];
|
||||
|
||||
env = lib.optionalAttrs stdenv.cc.isClang {
|
||||
# wol's bundled gettext sources do not compile as gnu23 with clang.
|
||||
NIX_CFLAGS_COMPILE = "-std=gnu17";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
perl # for pod2man in order to get a manpage
|
||||
autoreconfHook # for the patch
|
||||
|
||||
Reference in New Issue
Block a user