Patchwork [1/1] lz4: fix CC

login
register
mail settings
Submitter Robert Yang
Date Feb. 24, 2014, 9:35 a.m.
Message ID <c008c85aa9edf4e78527baa9f797ec86dbe95a92.1393234517.git.liezhi.yang@windriver.com>
Download mbox | patch
Permalink /patch/67215/
State Accepted
Commit 2b7edd5d15592ddda0ca91c95d7ad18f5a030a85
Headers show

Comments

Robert Yang - Feb. 24, 2014, 9:35 a.m.
It defined the CC to ${TARGET_PREFIX}gcc which lost the --sysroot and was
incorrect, it would cause unexpected errors, we should define it as CC=${CC}.

[YOCTO #5869]

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
---
 meta/recipes-support/lz4/lz4_svn.bb |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch

diff --git a/meta/recipes-support/lz4/lz4_svn.bb b/meta/recipes-support/lz4/lz4_svn.bb
index a760313..38e36d8 100644
--- a/meta/recipes-support/lz4/lz4_svn.bb
+++ b/meta/recipes-support/lz4/lz4_svn.bb
@@ -12,7 +12,7 @@  SRC_URI = "svn://lz4.googlecode.com/svn/;module=trunk;protocol=http"
 
 S = "${WORKDIR}/trunk"
 
-EXTRA_OEMAKE = "PREFIX=${prefix} CC=${TARGET_PREFIX}gcc DESTDIR=${D} LIBDIR=${libdir} INCLUDEDIR=${includedir}"
+EXTRA_OEMAKE = "PREFIX=${prefix} CC='${CC}' DESTDIR=${D} LIBDIR=${libdir} INCLUDEDIR=${includedir}"
 
 do_install() {
 	oe_runmake install