All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andre McCurdy <armccurdy@gmail.com>
To: openembedded-core@lists.openembedded.org
Subject: [PATCH] syslinux: exclude -fschedule-insns from TUNE_CCARGS for x86
Date: Thu, 15 Oct 2015 17:50:43 -0700	[thread overview]
Message-ID: <1444956643-21187-1-git-send-email-armccurdy@gmail.com> (raw)

Combining -fschedule-insns with the CFLAGS provided by syslinux (in
particular -fPIC and -mregparm) causes build failures with gcc 5.2.

Since -fschedule-insns is of questionable benefit for ia32, exclude
it from TUNE_CCARGS when building for x86.

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
---
 meta/recipes-devtools/syslinux/syslinux_6.03.bb | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/meta/recipes-devtools/syslinux/syslinux_6.03.bb b/meta/recipes-devtools/syslinux/syslinux_6.03.bb
index 8534528..c07703b 100644
--- a/meta/recipes-devtools/syslinux/syslinux_6.03.bb
+++ b/meta/recipes-devtools/syslinux/syslinux_6.03.bb
@@ -37,6 +37,11 @@ EXTRA_OEMAKE = " \
 	BINDIR=${bindir} SBINDIR=${sbindir} LIBDIR=${libdir} \
 	DATADIR=${datadir} MANDIR=${mandir} INCDIR=${includedir} \
 "
+
+# Combining -fschedule-insns with the CFLAGS provided by syslinux (in
+# particular -fPIC and -mregparm) causes build failures with gcc 5.2.
+TUNE_CCARGS_remove_x86 = "-fschedule-insns"
+
 # syslinux uses $LD for linking, strip `-Wl,' so it can work
 export LDFLAGS = "`echo $LDFLAGS | sed 's/-Wl,//g'`"
 
-- 
1.9.1



                 reply	other threads:[~2015-10-16  0:50 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=1444956643-21187-1-git-send-email-armccurdy@gmail.com \
    --to=armccurdy@gmail.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.