All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] syslinux: exclude -fschedule-insns from TUNE_CCARGS for x86
@ 2015-10-16  0:50 Andre McCurdy
  0 siblings, 0 replies; only message in thread
From: Andre McCurdy @ 2015-10-16  0:50 UTC (permalink / raw)
  To: openembedded-core

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



^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2015-10-16  0:50 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-16  0:50 [PATCH] syslinux: exclude -fschedule-insns from TUNE_CCARGS for x86 Andre McCurdy

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.