Patchwork [dora,master] syslinux: use cross toolchain to compile

login
register
mail settings
Submitter Mark Hatle
Date Nov. 21, 2013, 7:30 p.m.
Message ID <1385062248-32365-1-git-send-email-mark.hatle@windriver.com>
Download mbox | patch
Permalink /patch/62179/
State Accepted
Commit 62c50eed1afa3c40c6823b0b2a917d5d1309f574
Headers show

Comments

Mark Hatle - Nov. 21, 2013, 7:30 p.m.
From: Lei Liu <lei.liu2@windriver.com>

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.

Signed-off-by: Lei Liu <lei.liu2@windriver.com>
Signed-off-by: Randy MacLeod <Randy.MacLeod@windriver.com>
---
 meta/recipes-devtools/syslinux/syslinux_6.01.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch

diff --git a/meta/recipes-devtools/syslinux/syslinux_6.01.bb b/meta/recipes-devtools/syslinux/syslinux_6.01.bb
index c6e83b5..1c240de 100644
--- a/meta/recipes-devtools/syslinux/syslinux_6.01.bb
+++ b/meta/recipes-devtools/syslinux/syslinux_6.01.bb
@@ -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/