[oe-commits] Roy Li : mmc-utils: fix the building failure when DEBUG_BUILD is 1

git at git.openembedded.org git at git.openembedded.org
Sun Jun 28 12:38:54 UTC 2015


Module: openembedded-core.git
Branch: master-next
Commit: 31b547b58091cf53edde4a316457eb23533a28d9
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=31b547b58091cf53edde4a316457eb23533a28d9

Author: Roy Li <rongqing.li at windriver.com>
Date:   Fri Jun 26 09:30:05 2015 +0800

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 <rongqing.li at windriver.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>

---

 meta/recipes-devtools/mmc/mmc-utils_git.bb | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/meta/recipes-devtools/mmc/mmc-utils_git.bb b/meta/recipes-devtools/mmc/mmc-utils_git.bb
index bdb4fed..8950360 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}



More information about the Openembedded-commits mailing list