From patchwork Wed Feb 10 15:03:23 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jeroen Roovers X-Patchwork-Id: 581438 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ozlabs.org (Postfix) with ESMTP id 82DE1140B9A for ; Thu, 11 Feb 2016 02:03:30 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=airfi-aero.20150623.gappssmtp.com header.i=@airfi-aero.20150623.gappssmtp.com header.b=T0P6pJS6; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 8FE8491FA1; Wed, 10 Feb 2016 15:03:29 +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 ebyotoaIyG7j; Wed, 10 Feb 2016 15:03:27 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id 7C1B991A33; Wed, 10 Feb 2016 15:03:27 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 048EC1C1759 for ; Wed, 10 Feb 2016 15:03:26 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 00D5A8C499 for ; Wed, 10 Feb 2016 15:03:26 +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 G06kIhMccraJ for ; Wed, 10 Feb 2016 15:03:25 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail-yw0-f181.google.com (mail-yw0-f181.google.com [209.85.161.181]) by whitealder.osuosl.org (Postfix) with ESMTPS id E05DF91A33 for ; Wed, 10 Feb 2016 15:03:24 +0000 (UTC) Received: by mail-yw0-f181.google.com with SMTP id q190so15915012ywd.3 for ; Wed, 10 Feb 2016 07:03:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=airfi-aero.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=asmd9fckgT0U3dwbrs7aqUWJTtZg11I3U/JpCY1oWTk=; b=T0P6pJS6mAS+9z7/4k2ubM5+uSakkis4MmLwuXY26m9c9sYXh6Lq+nJKgwX12NzNQ1 esHE2MASrl9M6+G31chqWhz2UypgC5HfG/pxWODEW31kyLvojfqwxBsVIi59KKiEkUSg qrqjuMl/CUjjcSGUJ03tiqzG/YcRccUfq5jlS/cFvYebbw6Oz+o7NNZLPP8pbBv0Ck6g gDiJ+NaJaLtxiwWxly6lmGQDw+4McGMTs8g+Pf/wq3LKTBtEyWavN8GJqYWQv21FhPas VoLIGpCsKg5yGPvV9jNhAxdMRDPJ72kbYBujnbW3gLQe1LEIUc/NKPETjc+jdDsABAeD 5K9Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=asmd9fckgT0U3dwbrs7aqUWJTtZg11I3U/JpCY1oWTk=; b=Q4fPXE+iPPdWMKEbuYWv47sz1OmYBFjpkKJ/ki9OBGGS30ssAhAHAj1PYCmCQBqJBA BQCbx5nvnUxglMzKyvH2ZxLxNZ/i+81ShBcF4A0YrsFOm32NNyUjlEj/7P16URYDyuyu whtmDGMeQPienFLu3YRUR+H/ceI9QVsid80O1J7rMeaNYh4hnH0YoSlOFJthieCUDktA stkzUafWiqANLDnAYeNKMorGPo+F94UF9qnweS2VxsIXm9yEDAIv3WEOQpyIJR7fCted an1XoUAs76mmtXIkzMmNOPPP7eQ7UHhIfAb4Vk/ZpNFznIT3cEC8eZ/UXNIAUEznboyk v2ag== X-Gm-Message-State: AG10YOR0LKdze7txKhKwyZG/K3hXPEkjgU9c6HoDTVBoBxrChemj9eiNS+eucLD3gJsPoxDvYho30uoWAdSTiA== MIME-Version: 1.0 X-Received: by 10.129.57.69 with SMTP id g66mr19967892ywa.176.1455116604063; Wed, 10 Feb 2016 07:03:24 -0800 (PST) Received: by 10.129.136.130 with HTTP; Wed, 10 Feb 2016 07:03:23 -0800 (PST) In-Reply-To: <1455102927-28502-1-git-send-email-jer@airfi.aero> References: <1455102927-28502-1-git-send-email-jer@airfi.aero> Date: Wed, 10 Feb 2016 16:03:23 +0100 Message-ID: From: Jeroen Roovers To: buildroot@buildroot.org Subject: [Buildroot] Fwd: [PATCH 1/1] uboot: Strip "-Wl," from 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: , Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" ---------- Forwarded message ---------- From: Jeroen Roovers Date: 10 February 2016 at 12:15 Subject: [PATCH 1/1] uboot: Strip "-Wl," from LDFLAGS To: buildroot@buildroot.org Cc: Jeroen Roovers If we want to set proper LDFLAGS, then we need to mangle that in the uboot build system as it calls ld(1) (in fact ld.bfd) directly, where the "-Wl," prefix should only be used when the linker is called indirectly through gcc(1). Signed-off-by: Jeroen Roovers --- boot/uboot/uboot.mk | 1 + 1 file changed, 1 insertion(+) -- 2.4.10 diff --git a/boot/uboot/uboot.mk b/boot/uboot/uboot.mk index d539b31..9996aca 100644 --- a/boot/uboot/uboot.mk +++ b/boot/uboot/uboot.mk @@ -83,6 +83,7 @@ endif UBOOT_MAKE_OPTS += \ CROSS_COMPILE="$(TARGET_CROSS)" \ + LDFLAGS="$(TARGET_LDFLAGS:-Wl,%=%)" \ ARCH=$(UBOOT_ARCH) ifeq ($(BR2_TARGET_UBOOT_NEEDS_DTC),y)