* [RFC] Add static build target, try two - using git send-email
@ 2013-01-26 0:21 Ian Kumlien
2013-01-26 0:21 ` [PATCH] [RFC] Add static compile target Ian Kumlien
0 siblings, 1 reply; 2+ messages in thread
From: Ian Kumlien @ 2013-01-26 0:21 UTC (permalink / raw)
To: linux-btrfs
And this adds the static compile target... *phew*
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-i
^ permalink raw reply [flat|nested] 2+ messages in thread
* [PATCH] [RFC] Add static compile target
2013-01-26 0:21 [RFC] Add static build target, try two - using git send-email Ian Kumlien
@ 2013-01-26 0:21 ` Ian Kumlien
0 siblings, 0 replies; 2+ messages in thread
From: Ian Kumlien @ 2013-01-26 0:21 UTC (permalink / raw)
To: linux-btrfs; +Cc: Ian Kumlien
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(+)
diff --git a/Makefile b/Makefile
index 4894903..9148d0b 100644
--- a/Makefile
+++ b/Makefile
@@ -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
--
1.8.1.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-01-26 0:25 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-26 0:21 [RFC] Add static build target, try two - using git send-email Ian Kumlien
2013-01-26 0:21 ` [PATCH] [RFC] Add static compile target Ian Kumlien
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).