From patchwork Wed Feb 3 09:18:46 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Korsgaard X-Patchwork-Id: 44360 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from bombadil.infradead.org (bombadil.infradead.org [18.85.46.34]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 9B34EB7D11 for ; Wed, 3 Feb 2010 20:21:23 +1100 (EST) Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.69 #1 (Red Hat Linux)) id 1NcbOA-0005ga-Co; Wed, 03 Feb 2010 09:19:10 +0000 Received: from ey-out-1920.google.com ([74.125.78.150]) by bombadil.infradead.org with esmtp (Exim 4.69 #1 (Red Hat Linux)) id 1NcbO4-0005fX-SR for linux-mtd@lists.infradead.org; Wed, 03 Feb 2010 09:19:09 +0000 Received: by ey-out-1920.google.com with SMTP id 4so195672eyg.26 for ; Wed, 03 Feb 2010 01:19:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:received:from:to:cc :subject:date:message-id:x-mailer; bh=YqzaXkH7HO2+B6QYbM6vDYak5djuSrfK1noDzEUGsl8=; b=UGbGSg8UGZctsJn98ivsEN6kaInp3gimvK6h5aPpHRWKeUGnir27bqr0Gy1iCuIHVe DnzmTARkDhTsThz/Nkl7/GoV2uSzrw2xnku+p4vSkxUr73Ih6DRV7p2GZVaw0s3o9Cq/ D7oXFE8lF96sQB7nQ/X2ecOHqC+O979VuTERE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:from:to:cc:subject:date:message-id:x-mailer; b=u98x7PWV7ZIosRBHP6ltIgFItJFxxi7VS5waOtyRQCLY/2aCLCCwi40YUyHYfxhyWT 1k+3rI8vtFuPmoCtI70FR6NS5QDoWXc/SIIW4VEAr7kto2mRpVZZztoTep3/6gxxLZyD AgUXEg/qquwSjZTfrlcPW7KIQGI6GNCnLDAgs= Received: by 10.213.77.141 with SMTP id g13mr167957ebk.3.1265188742207; Wed, 03 Feb 2010 01:19:02 -0800 (PST) Received: from macbook.be.48ers.dk (191.207-78-194.adsl-fix.skynet.be [194.78.207.191]) by mx.google.com with ESMTPS id 13sm5216723ewy.9.2010.02.03.01.19.01 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 03 Feb 2010 01:19:01 -0800 (PST) Received: by macbook.be.48ers.dk (Postfix, from userid 1000) id 5563BC3CFC; Wed, 3 Feb 2010 10:18:56 +0100 (CET) From: Peter Korsgaard To: linux-mtd@lists.infradead.org, dedekind1@gmail.com Subject: [PATCH] mtd-utils: add option to not force largefile support Date: Wed, 3 Feb 2010 10:18:46 +0100 Message-Id: <1265188726-23746-1-git-send-email-jacmet@sunsite.dk> X-Mailer: git-send-email 1.6.5 X-CRM114-Version: 20090807-BlameThorstenAndJenny ( TRE 0.7.6 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20100203_041905_062764_604081F6 X-CRM114-Status: GOOD ( 11.65 ) X-Spam-Score: 0.0 (/) X-Spam-Report: SpamAssassin version 3.2.5 on bombadil.infradead.org summary: Content analysis details: (0.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- _SUMMARY_ X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: linux-mtd-bounces@lists.infradead.org Errors-To: linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org Not all systems have largefile support (E.G. uClibc depending on config), so unconditionally enforcing largefile breaks the build. Work around it by adding a WITHOUT_LARGEFILE flag, similar to the existing WITHOUT_XATTR. Signed-off-by: Peter Korsgaard --- common.mk | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/common.mk b/common.mk index 5e92b07..d704b44 100644 --- a/common.mk +++ b/common.mk @@ -12,7 +12,10 @@ WFLAGS := -Wall \ $(call cc-option,-Wwrite-strings) \ $(call cc-option,-Wno-sign-compare) CFLAGS += $(WFLAGS) -CPPFLAGS += -D_FILE_OFFSET_BITS=64 + +ifneq ($(WITHOUT_LARGEFILE), 1) + CPPFLAGS += -D_FILE_OFFSET_BITS=64 +endif DESTDIR ?= /usr/local PREFIX=/usr