From patchwork Sat Jan 26 00:09:47 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ian Kumlien X-Patchwork-Id: 2048641 Return-Path: X-Original-To: patchwork-linux-btrfs@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id 545013FDC4 for ; Sat, 26 Jan 2013 00:22:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754816Ab3AZAWI (ORCPT ); Fri, 25 Jan 2013 19:22:08 -0500 Received: from mail.vapor.com ([83.220.149.2]:49987 "EHLO nitrogen.vapor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754319Ab3AZAWH (ORCPT ); Fri, 25 Jan 2013 19:22:07 -0500 X-Greylist: delayed 502 seconds by postgrey-1.27 at vger.kernel.org; Fri, 25 Jan 2013 19:22:07 EST 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 CB31540C036 for ; Sat, 26 Jan 2013 01:13:42 +0100 (CET) Received: from lori.pomac.com (lori.local [10.0.0.13]) by twilight.demius.net (Postfix) with ESMTP id 7752A8E067B; Sat, 26 Jan 2013 01:13:39 +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:09:47 +0100 Message-Id: <1359158987-19921-1-git-send-email-pomac@demius.net> X-Mailer: git-send-email 1.8.1.1 X-Virus-Scanned: clamav-milter 0.97.6 at twilight.demius.net X-Virus-Status: Clean X-Spam-Status: No, score=0.0 required=5.0 tests=UNPARSEABLE_RELAY autolearn=ham version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on twilight.pomac.com Sender: linux-btrfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org 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