From: Ian Kumlien <pomac@vapor.com>
To: linux-btrfs@vger.kernel.org
Subject: [RFC] add static compile target to make file
Date: Sat, 26 Jan 2013 00:20:14 +0100 [thread overview]
Message-ID: <20130125232014.GC15780@pomac.netswarm.net> (raw)
[-- Attachment #1: Type: text/plain, Size: 221 bytes --]
Hi,
This is something i have been hacking in several times when i have had
odd issues or had to use a special version of btrfs-progs to handle
issues.
Anyway, thought i'd send something generic enough for everyone =).
[-- Attachment #2: 0001-RFC-Add-static-compile-target.patch --]
[-- Type: text/x-diff, Size: 810 bytes --]
>From 42f4bae2d2e8ee4a46a36454f7d9e3c63a6284d2 Mon Sep 17 00:00:00 2001
From: Ian Kumlien <pomac@demius.net>
Date: Sat, 26 Jan 2013 00:12:28 +0100
Subject: [PATCH] [RFC] 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(+)
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
reply other threads:[~2013-01-25 23:20 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20130125232014.GC15780@pomac.netswarm.net \
--to=pomac@vapor.com \
--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).