Skip to contentSkip to conversation

syslinux: use cross toolchain to compile

PATCH New Mark Hatle 1 participant 1 message Nov 21, 2013

lore
Share & tools
lore

Mark Hatle

author
#0 lore raw

PATCH 1/1 syslinux: use cross toolchain to compile

From: Lei Liu <[email protected]>

syslinux is compling something with host gcc at do_install stage, which leads to some unexpected errors with old gcc on host. Using our cross toolchain instead.

---
 meta/recipes-devtools/syslinux/syslinux_6.01.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-devtools/syslinux/syslinux_6.01.bb +1 -1
index c6e83b5..1c240de 100644
@@ -44,7 +44,7 @@ do_compile() {
 }
 
 do_install() {
-	oe_runmake install INSTALLROOT="${D}" firmware="bios"
+	oe_runmake CC="${CC} ${CFLAGS}" install INSTALLROOT="${D}" firmware="bios"
 
 	install -d ${D}${datadir}/syslinux/
 	install -m 644 ${S}/bios/core/ldlinux.sys ${D}${datadir}/syslinux/
Signature · 1 line
1.8.1.2.545.g2f19ada