diff options
author | Roy Li <rongqing.li@windriver.com> | 2015-06-26 09:30:05 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-07-01 15:38:20 +0100 |
commit | 11d31170fa955a5a1293455ba24d5e3a88dc69af (patch) | |
tree | 82614b1adf9453eedc464be95db8e8e2451b9786 | |
parent | 91db51363b3cf78a7b908ea4a548ab9658150661 (diff) | |
download | openembedded-core-contrib-11d31170fa955a5a1293455ba24d5e3a88dc69af.tar.gz |
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@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/recipes-devtools/mmc/mmc-utils_git.bb | 4 |
1 files changed, 4 insertions, 0 deletions
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} |