Skip to contentSkip to conversation

syslinux: exclude -fschedule-insns from TUNE_CCARGS for x86

PATCH New Andre McCurdy 1 participant 1 message Oct 16, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 syslinux: exclude -fschedule-insns from TUNE_CCARGS for x86

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.

---
 meta/recipes-devtools/syslinux/syslinux_6.03.bb | 5 +++++
 1 file changed, 5 insertions(+)
meta/recipes-devtools/syslinux/syslinux_6.03.bb +5 -0
index 8534528..c07703b 100644
@@ -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'`"
 
Signature · 1 line
1.9.1