Menu

#10 static fails: missing $(OBJECTS2)

1.0
closed
None
2025-12-19
2025-12-19
Nico P
No

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

Discussion

  • Kurt Garloff

    Kurt Garloff - 2025-12-19

    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.

     
  • Kurt Garloff

    Kurt Garloff - 2025-12-19
    • status: open --> closed
     
  • Kurt Garloff

    Kurt Garloff - 2025-12-19

    Clsoed fixed.

     

Log in to post a comment.

MongoDB Logo MongoDB