Openembedded Core Discussions
 help / color / mirror / Atom feed
* [Morty][PATCH] binutils: Fix build issue on Centos 6
@ 2017-11-23 18:05 Armin Kuster
  2017-11-23 18:37 ` ✗ patchtest: failure for " Patchwork
  2017-11-27  1:45 ` [Morty][PATCH] " Khem Raj
  0 siblings, 2 replies; 6+ messages in thread
From: Armin Kuster @ 2017-11-23 18:05 UTC (permalink / raw)
  To: akuster, openembedded-core

From: Armin Kuster <akuster@mvista.com>

Per Yocto Compatable: The following change was made to fix a build issue we are seeing on
Centos 6. Not expecting this to be merge.

binutils-cross-canadian-arm-2.27-r0.47: task do_compile:

gprof' cc1: error: unrecognized command line option "-Wstack-usage=262144"

Signed-off-by: Jagadeesh Krishnanjanappa <jkrishnanjanappa@mvista.com>
Reviewed-by: Jeremy Puhlman <jpuhlman@mvista.com>
Signed-off-by: Armin Kuster <akuster@mvista.com>
---
 meta/recipes-devtools/binutils/binutils-cross-canadian.inc | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/meta/recipes-devtools/binutils/binutils-cross-canadian.inc b/meta/recipes-devtools/binutils/binutils-cross-canadian.inc
index ae14642..30e3bc6 100644
--- a/meta/recipes-devtools/binutils/binutils-cross-canadian.inc
+++ b/meta/recipes-devtools/binutils/binutils-cross-canadian.inc
@@ -12,6 +12,13 @@ EXTRA_OECONF += "--with-sysroot=${SDKPATH}/sysroots/${TUNE_PKGARCH}${TARGET_VEND
 # e.g. we switch between different machines with different tunes.
 EXTRA_OECONF[vardepsexclude] = "TUNE_PKGARCH"
 
+EXTRA_OEMAKE += "WARN_CFLAGS='-W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow'"
+do_configure_prepend () {
+       sed -i ${S}/bfd/warning.m4 -e "/Wstack-usage/D"
+       sed -i ${S}/bfd/configure -e "s/-Wstack-usage=262144//"
+       sed -i ${S}/binutils/configure -e "s/-Wstack-usage=262144//"
+}
+
 do_install () {
 	autotools_do_install
 
-- 
2.7.4



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

end of thread, other threads:[~2017-11-30  7:16 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-11-23 18:05 [Morty][PATCH] binutils: Fix build issue on Centos 6 Armin Kuster
2017-11-23 18:37 ` ✗ patchtest: failure for " Patchwork
2017-11-27  1:45 ` [Morty][PATCH] " Khem Raj
2017-11-28 16:07   ` Jagadeesh Krishnanjanappa
2017-11-29  7:41     ` Khem Raj
2017-11-30  7:16       ` Jagadeesh Krishnanjanappa

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