From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: buildroot@busybox.net
Subject: [Buildroot] Fwd: [PATCH 1/1] uboot: Strip "-Wl," from LDFLAGS
Date: Fri, 3 Jun 2016 15:18:04 +0200 [thread overview]
Message-ID: <20160603151804.41a9baa7@free-electrons.com> (raw)
In-Reply-To: <CANCHnQppW3mmP=6WGBChD06+7ns0u1D5R6MQb=pxCmV6nQ7=Mw@mail.gmail.com>
Hello,
On Wed, 10 Feb 2016 16:03:23 +0100, Jeroen Roovers wrote:
> ---------- Forwarded message ----------
> From: Jeroen Roovers <jer@airfi.aero>
> Date: 10 February 2016 at 12:15
> Subject: [PATCH 1/1] uboot: Strip "-Wl," from LDFLAGS
> To: buildroot at buildroot.org
> Cc: Jeroen Roovers <jer@airfi.aero>
>
>
> 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 <jer@airfi.aero>
I have not been able to reproduce a build problem, since TARGET_LDFLAGS
are currently not passed to U-Boot. So the following defconfig builds
fine:
BR2_arm=y
BR2_TOOLCHAIN_EXTERNAL=y
BR2_TOOLCHAIN_EXTERNAL_CUSTOM=y
BR2_TOOLCHAIN_EXTERNAL_DOWNLOAD=y
BR2_TOOLCHAIN_EXTERNAL_URL="http://autobuild.buildroot.org/toolchains/tarballs/br-arm-full-2016.05-rc2-3-g011d4e2.tar.bz2"
BR2_TOOLCHAIN_EXTERNAL_GCC_4_8=y
BR2_TOOLCHAIN_EXTERNAL_HEADERS_3_10=y
BR2_TOOLCHAIN_EXTERNAL_LOCALE=y
# BR2_TOOLCHAIN_EXTERNAL_HAS_THREADS_DEBUG is not set
BR2_TOOLCHAIN_EXTERNAL_INET_RPC=y
BR2_TOOLCHAIN_EXTERNAL_CXX=y
BR2_TARGET_LDFLAGS="-Wl,--as-needed"
BR2_INIT_NONE=y
BR2_SYSTEM_BIN_SH_NONE=y
# BR2_PACKAGE_BUSYBOX is not set
# BR2_TARGET_ROOTFS_TAR is not set
BR2_TARGET_UBOOT=y
BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG=y
BR2_TARGET_UBOOT_BOARD_DEFCONFIG="clearfog"
So maybe your patch is also about *passing* LDFLAGS down to U-Boot ?
In any case, your commit log had some "mail forwarding" related
contents. Could you resend an updated version, which explains a bit
better that the patch also *passes* LDFLAGS down to U-Boot, and with
fixed up commit log?
Thanks a lot!
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
next prev parent reply other threads:[~2016-06-03 13:18 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1455102927-28502-1-git-send-email-jer@airfi.aero>
2016-02-10 15:03 ` [Buildroot] Fwd: [PATCH 1/1] uboot: Strip "-Wl," from LDFLAGS Jeroen Roovers
2016-02-10 16:41 ` Thomas Petazzoni
[not found] ` <CANCHnQogKCY-OTT2=wTkNJ8D52QWetBqdnWbfAqRKKcoW8Yrpw@mail.gmail.com>
[not found] ` <CANCHnQp5E4kx=2VpVDXAC-sn+ruxe=0nwamG=DXp_WEgQVCRjw@mail.gmail.com>
2016-02-19 15:04 ` [Buildroot] Fwd: Fwd: [PATCH 1/1] uboot: Strip "-Wl, " " Jeroen Roovers
2016-06-03 13:18 ` Thomas Petazzoni [this message]
2016-06-03 14:00 ` [Buildroot] Fwd: [PATCH 1/1] uboot: Strip "-Wl," " Jeroen Roovers
2016-06-03 14:03 ` Thomas Petazzoni
2016-06-03 14:10 ` Jeroen Roovers
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20160603151804.41a9baa7@free-electrons.com \
--to=thomas.petazzoni@free-electrons.com \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox