]> code.ossystems Code Review - openembedded-core.git/commitdiff
mkelfimage: fix target cflags leaks to host
authorHongxu Jia <hongxu.jia@windriver.com>
Fri, 29 Jan 2016 17:35:56 +0000 (12:35 -0500)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 30 Jan 2016 11:38:00 +0000 (11:38 +0000)
The patch fix-makefile-to-find-libz.patch fixed native
compile failure; for target compile, it incorrectly
leaks CFLAGS to HOST_CFLAGS.

[YOCTO #3547]

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/mkelfimage/mkelfimage_git.bb

index e1c33a631be4ec2bfba0d992f55816d635368a31..92435cd1c064308c7716c2dac4a402f4255ff27a 100644 (file)
@@ -14,8 +14,10 @@ DEPENDS += "zlib"
 
 SRC_URI = "git://review.coreboot.org/p/coreboot;protocol=http \
            file://cross-compile.patch   \
-           file://fix-makefile-to-find-libz.patch   \
           "
+SRC_URI_append_class-native = " \
+           file://fix-makefile-to-find-libz.patch   \
+"
 
 CLEANBROKEN = "1"