From 9139cc79bfd82697d05334dacb99c616bce2ef14 Mon Sep 17 00:00:00 2001 From: Duncaen Date: Fri, 22 Mar 2019 15:44:15 +0100 Subject: [PATCH] mk/prog.mk: rebuild static binaries if static libs change --- mk/prog.mk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mk/prog.mk b/mk/prog.mk index e001c6ba..a3e1ca46 100644 --- a/mk/prog.mk +++ b/mk/prog.mk @@ -46,9 +46,9 @@ endif @printf " [CC]\t\t$@\n" ${SILENT}$(CC) $(CPPFLAGS) $(CFLAGS) $(EXTRA_CFLAGS) -c $< -$(BIN).static: $(OBJS) +$(BIN).static: $(OBJS) $(STATIC_LIBS) @printf " [CCLD]\t\t$@\n" - ${SILENT}$(CC) -static $^ $(CPPFLAGS) -L$(TOPDIR)/lib \ + ${SILENT}$(CC) -static $(OBJS) $(CPPFLAGS) -L$(TOPDIR)/lib \ $(CFLAGS) $(LDFLAGS) $(STATIC_LIBS) -o $@ $(BIN): $(OBJS)