libcdio: fix Darwin build by setting -std=gnu17

Refs: https://github.com/NixOS/nixpkgs/issues/511329
This commit is contained in:
FlameFlag
2026-04-19 19:49:52 +03:00
parent 2d82734971
commit afb127a54d
+7
View File
@@ -49,8 +49,15 @@ stdenv.mkDerivation (finalAttrs: {
configureFlags = [
(lib.enableFeature withMan "maintainer-mode")
"CFLAGS=-std=gnu17"
];
# autoconf 2.73's AM_ICONV "working iconv" runtime probe reports "no" on
# Darwin's libiconv; skip it via the cache variable. Refs #511329.
preConfigure = ''
export am_cv_func_iconv_works=yes
'';
nativeBuildInputs = [
pkg-config
autoreconfHook