From: Romain Naour <romain.naour@openwide.fr>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 1/1] gcc: make sure we don't have a copy of libiberty.a in host library dir
Date: Mon, 27 Jul 2015 16:38:09 +0200 [thread overview]
Message-ID: <55B64251.6010404@openwide.fr> (raw)
In-Reply-To: <1437039568-22957-1-git-send-email-viallard@syscom-instruments.com>
Hi Anthony,
Le 16/07/2015 11:39, Anthony Viallard a ?crit :
> With old gcc version (like with 4.7.4), libiberty.a is copied to
> library directory and it's not the behavior we want.
>
> According to Arnout Vandecappelle, newer version of gcc
> have fixed the problem. But if you choose gcc 4.7.X, the problem
> is there. Therefore, I send this little patch which remove the
> bad file after the build is finished.
>
> Signed-off-by: Anthony Viallard <viallard@syscom-instruments.com>
> ---
Thanks for your patch!
I had the same issue with gcc-4.8 and I tried to fix it with the following
patches (which was rejected):
http://patchwork.ozlabs.org/patch/460494/
http://patchwork.ozlabs.org/patch/449686/
However, after some investigation, here is the right fix from upstream:
http://patchwork.ozlabs.org/patch/470531/
The --disable-install-libiberty option was broken, that's why the internal
libiberty.a was installed in HOST_DIR.
Hopefully, the same patch apply on gcc-4.7:
http://patchwork.ozlabs.org/patch/500445/
Care to test it ?
Best regards,
Romain Naour
> package/gcc/gcc-final/gcc-final.mk | 6 ++++++
> 1 file changed, 6 insertions(+)
>
> diff --git a/package/gcc/gcc-final/gcc-final.mk b/package/gcc/gcc-final/gcc-final.mk
> index 16bf4ee..2cce860 100644
> --- a/package/gcc/gcc-final/gcc-final.mk
> +++ b/package/gcc/gcc-final/gcc-final.mk
> @@ -185,6 +185,12 @@ endef
> HOST_GCC_FINAL_POST_INSTALL_HOOKS += HOST_GCC_FINAL_INSTALL_USR_LIBS
> endif
>
> +define HOST_GCC_FINAL_RM_LIBIBERTY_A
> + rm -f $(HOST_DIR)/usr/lib/libiberty.a
> +endef
> +
> +HOST_GCC_FINAL_POST_INSTALL_HOOKS += HOST_GCC_FINAL_RM_LIBIBERTY_A
> +
> ifeq ($(BR2_xtensa),y)
> HOST_GCC_FINAL_CONF_OPTS += --enable-cxx-flags="$(TARGET_ABI)"
> endif
>
next prev parent reply other threads:[~2015-07-27 14:38 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-16 9:39 [Buildroot] [PATCH 1/1] gcc: make sure we don't have a copy of libiberty.a in host library dir Anthony Viallard
2015-07-27 14:38 ` Romain Naour [this message]
2015-08-04 9:42 ` Viallard Anthony
2015-08-04 9:54 ` Romain Naour
2015-08-04 11:30 ` Romain Naour
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=55B64251.6010404@openwide.fr \
--to=romain.naour@openwide.fr \
--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