Skip to contentSkip to conversation

Add static build target, try two - using git send-email

RFC New Ian Kumlien 1 participant 2 messages Jan 26, 2013

Subsystems (2)
lore
Share & tools
lore
#1 lore raw

RFC PATCH 1/1 Add static compile target

Sometimes, when you least expect it, a static binary is what you need to rescue your data... Or just get a good enough handle on things to make it work again ;)

"make static" is a gift to you, dear user with filesystem problems!

---
 Makefile | 4 ++++
 1 file changed, 4 insertions(+)
Makefile +4 -0
index 4894903..9148d0b 100644
@@ -117,4 +117,8 @@ install: $(progs) install-man
 	$(INSTALL) -m755 -d $(DESTDIR)$(bindir)
 	$(INSTALL) $(progs) $(DESTDIR)$(bindir)
 
+static: CFLAGS += -static
+static: LIBS += -lpthread
+static: all
+
 -include .*.d
Signature · 1 line
1.8.1.1