sdcc: fix build on Darwin

sdcc 4.5.0 massively rewrote sim/ucsim/Makefile.in, and lost the `.PHONY`
rule in the process. As a result, on macOS (which uses a case-insensitive
filesystem), the INSTALL file keeps the `install` target in the ucsim
directory from running. Nothing else creates the `man` output, causing
the entire build to fail.
This commit is contained in:
Rhys-T
2025-05-05 07:04:48 +02:00
committed by Bjørn Forsman
parent 8cf2a065f8
commit a9a6b98f05
+10
View File
@@ -63,6 +63,16 @@ stdenv.mkDerivation (finalAttrs: {
gputils
];
# sdcc 4.5.0 massively rewrote sim/ucsim/Makefile.in, and lost the `.PHONY`
# rule in the process. As a result, on macOS (which uses a case-insensitive
# filesystem), the INSTALL file keeps the `install` target in the ucsim
# directory from running. Nothing else creates the `man` output, causing the
# entire build to fail.
postPatch = ''
echo '.PHONY: install' >> sim/ucsim/Makefile.in
'';
configureFlags =
let
excludedPorts =