From patchwork Tue Mar 3 09:17:15 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Porcedda X-Patchwork-Id: 445593 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from hemlock.osuosl.org (hemlock.osuosl.org [140.211.166.133]) by ozlabs.org (Postfix) with ESMTP id 0A7D7140140 for ; Tue, 3 Mar 2015 20:18:18 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="verification failed; unprotected key" header.d=gmail.com header.i=@gmail.com header.b=MAMTyvLt; dkim-adsp=none (unprotected policy); dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 3168F94CFB; Tue, 3 Mar 2015 09:18:18 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id EGgQ32RsQIBw; Tue, 3 Mar 2015 09:18:16 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 7CFD994D76; Tue, 3 Mar 2015 09:18:16 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 688DF1C0B50 for ; Tue, 3 Mar 2015 09:18:14 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 3C6A88D02B for ; Tue, 3 Mar 2015 09:18:14 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id C1SUJ7DjQ8Do for ; Tue, 3 Mar 2015 09:18:13 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-pa0-f52.google.com (mail-pa0-f52.google.com [209.85.220.52]) by whitealder.osuosl.org (Postfix) with ESMTPS id 8308A8CDC4 for ; Tue, 3 Mar 2015 09:18:13 +0000 (UTC) Received: by padfa1 with SMTP id fa1so22345628pad.9 for ; Tue, 03 Mar 2015 01:18:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id:in-reply-to:references; bh=Ve1wdaLRjCS3mOZgKoZTPiwdxUpSdR+YJlFn9c1BWvY=; b=MAMTyvLtMHnsfK3CRj4UdRPdoLgiboWx8sj3bRvKWb3gPf3zCdinYpWo0necL608On gFzsBofJwUrLMyZCywHnbQyY/EE4f3sVxC7aqwPrYaYAykf6LKynvhKvxlsQ6d63flg9 PBE/XdZlv7lJSiC4S5swz+4Nf4j9/6V5zbuq+XURQfCgJMXriNRGNvMa/7Gda9j8fMVP UpCis1iR0/AK9450HK8Q3OIu17sgCLISeDCkepYVe/8TZerXoSWTzHcEnLP4rG5CvriM OVhPAW1JVMo7WOpeWVX+Ax0j+Em+1KkWWmloqg+qFVy1KlFbaFxHf+HUNhN35b8OfyK5 p1uw== X-Received: by 10.68.224.71 with SMTP id ra7mr53887849pbc.140.1425374292925; Tue, 03 Mar 2015 01:18:12 -0800 (PST) Received: from ld2077.tmt.telital.com ([213.205.6.118]) by mx.google.com with ESMTPSA id fs13sm323638pdb.38.2015.03.03.01.18.10 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 03 Mar 2015 01:18:12 -0800 (PST) From: Fabio Porcedda To: buildroot@uclibc.org Date: Tue, 3 Mar 2015 10:17:15 +0100 Message-Id: <1425374255-6827-11-git-send-email-fabio.porcedda@gmail.com> X-Mailer: git-send-email 2.3.1 In-Reply-To: <1425374255-6827-1-git-send-email-fabio.porcedda@gmail.com> References: <1425374255-6827-1-git-send-email-fabio.porcedda@gmail.com> Subject: [Buildroot] [RFC v3 10/30] faifa: use TARGET_LDFLAGS X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" To do that add a patch already sent to upstream: https://github.com/ffainelli/faifa/pull/9 This is in order to support the per-package staging directory. Signed-off-by: Fabio Porcedda --- ...-handle-LDFLAGS-passed-to-the-configure-s.patch | 40 ++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 package/faifa/0001-Makefile.in-handle-LDFLAGS-passed-to-the-configure-s.patch diff --git a/package/faifa/0001-Makefile.in-handle-LDFLAGS-passed-to-the-configure-s.patch b/package/faifa/0001-Makefile.in-handle-LDFLAGS-passed-to-the-configure-s.patch new file mode 100644 index 0000000..5d54374 --- /dev/null +++ b/package/faifa/0001-Makefile.in-handle-LDFLAGS-passed-to-the-configure-s.patch @@ -0,0 +1,40 @@ +From 62cafe305f4b9f5fb4305dcfb68ae3144efc3353 Mon Sep 17 00:00:00 2001 +From: Fabio Porcedda +Date: Wed, 18 Feb 2015 17:58:23 +0100 +Subject: [PATCH] Makefile.in: handle LDFLAGS passed to the configure script + +Taking in account CFLAGS and LDFLAGS passed to the configure script is a +common behaviour. + +This fix is also useful for supporting the per-package staging directory +within Buildroot. + +Signed-off-by: Fabio Porcedda +--- + Makefile.in | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/Makefile.in b/Makefile.in +index b1b7c58..792ac82 100644 +--- a/Makefile.in ++++ b/Makefile.in +@@ -14,6 +14,7 @@ + CC = @CC@ + STRIP ?= $(CROSS)strip + CFLAGS = @CFLAGS@ ++LDFLAGS = @LDFLAGS@ + INSTALL = @INSTALL@ + LIBS = @LIBS@ + +@@ -50,7 +51,7 @@ SIM_LIBS:=-levent + SIM_CFLAGS:=-Wno-unused + + ifeq ($(OS),DARWIN) +-LDFLAGS:=-dynamiclib -Wl,-dylib_install_name -Wl,$(LIB_SONAME) ++LDFLAGS+=-dynamiclib -Wl,-dylib_install_name -Wl,$(LIB_SONAME) + endif + + LIBS:=$(LDFLAGS) $(LIBS) +-- +2.3.0 +