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.
This commit is contained in:
Zane van Iperen
2026-02-11 01:24:23 +10:00
parent 953355a956
commit 2a7015603d
+5 -5
View File
@@ -1,14 +1,11 @@
{
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