Unverified Commit 1fa37655 authored by Vladimír Čunát's avatar Vladimír Čunát Committed by GitHub
Browse files

libcdio: fix Darwin build by setting `-std=gnu17` (#511495)

parents 033bc223 afb127a5
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -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