Unverified Commit 6e375428 authored by John Ericson's avatar John Ericson Committed by GitHub
Browse files

cygwin.newlib-cygwin: fix build on darwin (#485130)

parents 3f11a276 fe3dbed1
Loading
Loading
Loading
Loading
+8 −3
Original line number Diff line number Diff line
@@ -142,15 +142,20 @@
          "target"
        ];

        preConfigure =
          lib.optionalString (!lib.systems.equals stdenvNoLibc.hostPlatform stdenvNoLibc.buildPlatform)
            ''
              configureFlagsArray+=(ac_cv_prog_CC=$CC_FOR_BUILD)
            '';

        configureFlags = [
          "--disable-shared"
          "--disable-doc"
          "--enable-static"
          "--disable-dumper"
          "--with-cross-bootstrap"
        ]
        ++ lib.optional (stdenvNoLibc.hostPlatform != stdenvNoLibc.buildPlatform) [
          "ac_cv_prog_CC=gcc"
          # if gm4 or gnum4 are in PATH, they would be be preferred to nixpkgs m4
          "M4=m4"
        ];

        allowedImpureDLLs = [