linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] [RFC] Add static compile target
@ 2013-01-26  0:09 Ian Kumlien
  2013-01-27 17:11 ` Gene Czarcinski
  2013-01-28 17:05 ` David Sterba
  0 siblings, 2 replies; 10+ messages in thread
From: Ian Kumlien @ 2013-01-26  0:09 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

--
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-

^ permalink raw reply related	[flat|nested] 10+ messages in thread
* [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; 10+ 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] 10+ messages in thread

end of thread, other threads:[~2013-01-29 14:25 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-26  0:09 [PATCH] [RFC] Add static compile target Ian Kumlien
2013-01-27 17:11 ` Gene Czarcinski
2013-01-27 19:22   ` Ian Kumlien
2013-01-28 17:05 ` David Sterba
2013-01-28 18:41   ` Ian Kumlien
2013-01-28 21:46     ` David Sterba
2013-01-28 23:24       ` Ian Kumlien
2013-01-28 23:31       ` Ian Kumlien
2013-01-29 14:25         ` David Sterba
  -- strict thread matches above, loose matches on Subject: below --
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).