From patchwork Mon Feb 16 06:57:17 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Geoff Levand X-Patchwork-Id: 23207 X-Patchwork-Delegate: jk@ozlabs.org Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from ozlabs.org (localhost [127.0.0.1]) by ozlabs.org (Postfix) with ESMTP id 23377DDDA1 for ; Mon, 16 Feb 2009 18:04:16 +1100 (EST) X-Original-To: cbe-oss-dev@ozlabs.org Delivered-To: cbe-oss-dev@ozlabs.org Received: from hera.kernel.org (hera.kernel.org [140.211.167.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 8DE64DDDFB; Mon, 16 Feb 2009 18:03:04 +1100 (EST) Received: from hera.kernel.org (IDENT:U2FsdGVkX1+d1AEbTZFVeQaHRGVDP3CZQztsRhZT33k@localhost [127.0.0.1]) by hera.kernel.org (8.14.2/8.14.2) with ESMTP id n1G72xuh021738 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 16 Feb 2009 07:02:59 GMT Received: (from geoff@localhost) by hera.kernel.org (8.14.2/8.13.1/Submit) id n1G72xBq021737; Mon, 16 Feb 2009 07:02:59 GMT Message-Id: <20090216065712.961888310@am.sony.com> References: <20090216065712.595147007@am.sony.com> In-reply-to: <20090216065712.595147007@am.sony.com> User-Agent: quilt/0.46-1 Date: Sun, 15 Feb 2009 22:57:17 -0800 From: Geoff Levand To: Jeremy Kerr Content-Disposition: inline; filename=makefile-add-cflags-to-ldflags.diff X-Virus-Scanned: ClamAV 0.93.3/8994/Sun Feb 15 23:37:25 2009 on hera.kernel.org X-Virus-Status: Clean X-Spam-Status: No, score=-2.4 required=5.0 tests=AWL,BAYES_00, UNPARSEABLE_RELAY autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on hera.kernel.org X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.0 (hera.kernel.org [127.0.0.1]); Mon, 16 Feb 2009 07:03:01 +0000 (UTC) Cc: cbe-oss-dev@ozlabs.org Subject: [Cbe-oss-dev] [patch 5/8] petitboot: Add CFLAGS to LDFLAGS X-BeenThere: cbe-oss-dev@ozlabs.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: Discussion about Open Source Software for the Cell Broadband Engine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: cbe-oss-dev-bounces+patchwork-incoming=ozlabs.org@ozlabs.org Errors-To: cbe-oss-dev-bounces+patchwork-incoming=ozlabs.org@ozlabs.org Add the CFLAGS options to LDFLAGS so that the machine option from CFLAGS is used when linking. This duplicates the behavior of automake. Fixes errors like these: ppu-ld: skipping incompatible libc.so when searching for -lc Signed-off-by: Geoff Levand --- rules.mk | 1 + 1 file changed, 1 insertion(+) --- a/rules.mk +++ b/rules.mk @@ -2,6 +2,7 @@ VPATH = $(srcdir) CPPFLAGS += -I$(top_srcdir) -I$(top_srcdir)/lib -I$(builddir) +LDFLAGS += $(CFLAGS) # we need paths to be overridable at build-time DEFS += '-DPREFIX="$(prefix)"' '-DPKG_SHARE_DIR="$(pkgdatadir)"' \