From: Ian Kumlien <pomac@demius.net>
To: linux-btrfs@vger.kernel.org
Cc: Ian Kumlien <pomac@demius.net>
Subject: [PATCH] [RFC] Add static compile target
Date: Sat, 26 Jan 2013 01:21:56 +0100 [thread overview]
Message-ID: <1359159716-21062-2-git-send-email-pomac@demius.net> (raw)
In-Reply-To: <1359159716-21062-1-git-send-email-pomac@demius.net>
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
next prev parent reply other threads:[~2013-01-26 0:25 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
-- strict thread matches above, loose matches on Subject: below --
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1359159716-21062-2-git-send-email-pomac@demius.net \
--to=pomac@demius.net \
--cc=linux-btrfs@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).