Return-Path: Received: from mail.vapor.com ([83.220.149.2]:50029 "EHLO nitrogen.vapor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754984Ab3AZAZg (ORCPT ); Fri, 25 Jan 2013 19:25:36 -0500 Received: from twilight.demius.net (c-297271d5.013-195-6c756e10.cust.bredbandsbolaget.se [213.113.114.41]) by nitrogen.vapor.com (Postfix) with ESMTPSA id 04B6429B275 for ; Sat, 26 Jan 2013 01:25:35 +0100 (CET) From: Ian Kumlien To: linux-btrfs@vger.kernel.org Cc: Ian Kumlien Subject: [PATCH] [RFC] Add static compile target Date: Sat, 26 Jan 2013 01:21:56 +0100 Message-Id: <1359159716-21062-2-git-send-email-pomac@demius.net> In-Reply-To: <1359159716-21062-1-git-send-email-pomac@demius.net> References: <1359159716-21062-1-git-send-email-pomac@demius.net> Sender: linux-btrfs-owner@vger.kernel.org List-ID: 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