From: Roy Li Date: Fri, 26 Jun 2015 01:30:05 +0000 (+0800) Subject: mmc-utils: fix the building failure when DEBUG_BUILD is 1 X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~29937 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=11d31170fa955a5a1293455ba24d5e3a88dc69af;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git mmc-utils: fix the building failure when DEBUG_BUILD is 1 Remove -Werror, since it is suitable to develop only; otherwise when gcc adds -O0 option to compile codes, the error will be generated since the warning: //# warning _FORTIFY_SOURCE requires compiling with optimization (-O) Signed-off-by: Roy Li Signed-off-by: Richard Purdie --- diff --git a/meta/recipes-devtools/mmc/mmc-utils_git.bb b/meta/recipes-devtools/mmc/mmc-utils_git.bb index bdb4fed1818..89503609345 100644 --- a/meta/recipes-devtools/mmc/mmc-utils_git.bb +++ b/meta/recipes-devtools/mmc/mmc-utils_git.bb @@ -13,6 +13,10 @@ SRC_URI = "git://git.kernel.org/pub/scm/linux/kernel/git/cjb/mmc-utils.git;branc S = "${WORKDIR}/git" +do_configure_prepend() { + sed -i "s:-Werror::g" ${S}/Makefile +} + do_install() { install -d ${D}${bindir} install -m 0755 mmc ${D}${bindir}