From patchwork Sat Sep 5 16:33:29 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Douglas RAILLARD X-Patchwork-Id: 514831 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ozlabs.org (Postfix) with ESMTP id 2F3AF140216 for ; Sun, 6 Sep 2015 02:33:40 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b=Bb2O6Vbe; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 5CA528B055; Sat, 5 Sep 2015 16:33:39 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id hFEpwgDDpdId; Sat, 5 Sep 2015 16:33:37 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 1022B8B02A; Sat, 5 Sep 2015 16:33:37 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id 002F51C1F49 for ; Sat, 5 Sep 2015 16:33:35 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id EFCF58B017 for ; Sat, 5 Sep 2015 16:33:35 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id nyHC0M3pGd7h for ; Sat, 5 Sep 2015 16:33:35 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wi0-f177.google.com (mail-wi0-f177.google.com [209.85.212.177]) by fraxinus.osuosl.org (Postfix) with ESMTPS id 57FC58B00B for ; Sat, 5 Sep 2015 16:33:35 +0000 (UTC) Received: by wiclk2 with SMTP id lk2so49391334wic.0 for ; Sat, 05 Sep 2015 09:33:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=8/Ogyy30LhK7O0gBflk9ZN+PXPweS0qcyrJleVKojCM=; b=Bb2O6VbekAOfQbL5BdscTHH4BC2JQaVXNLCG2OCWPj1GiLBtcvG3s7cZ1/HrJR7byK NcP/3u2iJpeyFeLfQhha0sd2pRaVSEjCOMLK0BbF9FmXpHZkB3S4aRCtoZDtiXOPW27N WSXDeU9fTBSxzUdisNb+C7KjF+ab/gLIqIyQQjt7gzTQ/kGKZrhKi4dnozB9vtNeEnmy /UDVzh708kECqa1Hw0ZvRpcXmIbRDod3s1AcnSxGzJbE0HT5AQ+iqpqPvqGqQVPihQ8t QQHDzzTy2dvDnki3G+yA8kde5w2rrvEL3mEx7BzTYqojYBQREGLLCda9FmK3SMoolmfQ sJGg== X-Received: by 10.195.11.37 with SMTP id ef5mr18791703wjd.60.1441470813811; Sat, 05 Sep 2015 09:33:33 -0700 (PDT) Received: from localhost.localdomain (ARennes-556-1-197-54.w2-14.abo.wanadoo.fr. [2.14.108.54]) by smtp.gmail.com with ESMTPSA id ik8sm10716243wjb.8.2015.09.05.09.33.32 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 05 Sep 2015 09:33:33 -0700 (PDT) From: Douglas RAILLARD To: buildroot@buildroot.org Date: Sat, 5 Sep 2015 18:33:29 +0200 Message-Id: <1441470809-23403-1-git-send-email-public.douglas.raillard@gmail.com> X-Mailer: git-send-email 2.5.1 Cc: Douglas RAILLARD Subject: [Buildroot] [PATCH 2/3] Fix elf2flt build when LTO is enabled 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" Signed-off-by: Douglas RAILLARD --- package/elf2flt/elf2flt.mk | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/package/elf2flt/elf2flt.mk b/package/elf2flt/elf2flt.mk index 3fcada4..d028259 100644 --- a/package/elf2flt/elf2flt.mk +++ b/package/elf2flt/elf2flt.mk @@ -21,6 +21,12 @@ HOST_ELF2FLT_CONF_OPTS = \ --with-libiberty=$(HOST_BINUTILS_DIR)/libiberty/libiberty.a \ --target=$(GNU_TARGET_NAME) + HOST_ELF2FLT_CONF_ENV = LIBS=-lz +ifeq ($(BR2_GCC_ENABLE_LTO),y) + HOST_ELF2FLT_CONF_ENV = LIBS="-lz -ldl" +endif + + $(eval $(host-autotools-package))