static build fails because it's missing $(OBJECTS2) in the target :
--- a/Makefile
+++ b/Makefile
@@ -481,7 +481,7 @@ nolib: $(SRCDIR)/dd_rescue.c $(DDR_HEADERS) $(OBJECTS) $(OB>
nocolor: $(SRCDIR)/dd_rescue.c $(DDR_HEADERS) $(OBJECTS) $(OBJECTS2)
$(CC) $(CFLAGS) -DNO_COLORS=1 $(DEFINES) $< $(OUT) $(OBJECTS) $(OBJECTS>
-static: $(SRCDIR)/dd_rescue.c $(DDR_HEADERS) $(OBJECTS)
+static: $(SRCDIR)/dd_rescue.c $(DDR_HEADERS) $(OBJECTS) $(OBJECTS2)
$(CC) $(CFLAGS) -DNO_LIBDL -DNO_LIBFALLOCATE -static $(DEFINES) $< $(OU>
# Special pseudo targets
With that, it compiles calling make static
Ah, you can tell that the static build is not part of my test routine.
I took your patch and applied it to git, see commit 0e68146.
Thanks! Let me know if you find anything else.
Clsoed fixed.