Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] gcc: make sure we don't have a copy of libiberty.a in host library dir
@ 2015-07-16  9:39 Anthony Viallard
  2015-07-27 14:38 ` Romain Naour
  0 siblings, 1 reply; 5+ messages in thread
From: Anthony Viallard @ 2015-07-16  9:39 UTC (permalink / raw)
  To: buildroot

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>
---
 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
-- 
2.1.4

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-08-04 11:30 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2015-08-04  9:42   ` Viallard Anthony
2015-08-04  9:54     ` Romain Naour
2015-08-04 11:30       ` Romain Naour

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox