Unverified Commit 2a701560 authored by Zane van Iperen's avatar Zane van Iperen
Browse files

uasm: fix building with gcc > 13

gcc13Stdenv isn't cached pkgsStatic, which is particularly annoying.
Add the relevant flags to get it compiling with regular stdenv.
parent 953355a9
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
{
  lib,
  gcc13Stdenv,
  stdenv,
  fetchFromGitHub,
  testers,
  uasm,
}:

let
  stdenv = gcc13Stdenv;
in
stdenv.mkDerivation rec {
  pname = "uasm";
  version = "2.57";
@@ -23,13 +20,16 @@ stdenv.mkDerivation rec {
  enableParallelBuilding = true;

  makefile =
    if gcc13Stdenv.hostPlatform.isDarwin then
    if stdenv.hostPlatform.isDarwin then
      "Makefile-OSX-Clang-64.mak"
    else
      "Makefile-Linux-GCC-64.mak";

  makeFlags = [ "CC=${stdenv.cc.targetPrefix}cc" ];

  # Needed for compiling with GCC > 13
  env.CFLAGS = "-std=c99 -Wno-incompatible-pointer-types -Wno-implicit-function-declaration -Wno-int-conversion";

  installPhase = ''
    runHook preInstall