[OE-core] [PATCH][v5] mmc-utils: fix the building failure when DEBUG_BUILD is 1
Khem Raj
raj.khem at gmail.com
Sun Aug 16 07:19:35 UTC 2015
> On Jun 25, 2015, at 6:30 PM, rongqing.li at windriver.com wrote:
>
> From: Roy Li <rongqing.li at windriver.com>
>
> 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>
> ---
> 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
> +}
> +
this should be only down when DEBUG_BUILD is set not unconditionally like this.
> do_install() {
> install -d ${D}${bindir}
> install -m 0755 mmc ${D}${bindir}
> --
> 1.9.1
>
> --
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core at lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 204 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20150816/0f2639dc/attachment-0002.sig>
More information about the Openembedded-core
mailing list