Openembedded Core Discussions
 help / color / mirror / Atom feed
From: Armin Kuster <akuster808@gmail.com>
To: akuster@mvista.com, openembedded-core@lists.openembedded.org
Subject: [Morty][PATCH] binutils: Fix build issue on Centos 6
Date: Thu, 23 Nov 2017 10:05:02 -0800	[thread overview]
Message-ID: <1511460302-27041-1-git-send-email-akuster808@gmail.com> (raw)

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



             reply	other threads:[~2017-11-23 18:05 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-11-23 18:05 Armin Kuster [this message]
2017-11-23 18:37 ` ✗ patchtest: failure for binutils: Fix build issue on Centos 6 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

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=1511460302-27041-1-git-send-email-akuster808@gmail.com \
    --to=akuster808@gmail.com \
    --cc=akuster@mvista.com \
    --cc=openembedded-core@lists.openembedded.org \
    /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