On Mon, Nov 18, 2013 at 06:31:41PM +0800, yanjun.zhu wrote:
> When ccache is enabled, a parameter "ccache" is inserted.
> libtool can not handle this parameter correctly. So "--tag=CC"
> is introduced to help libtool handle it.

Typo in subject.

> ---
>  meta/recipes-support/apr/apr-util_1.5.2.bb |    5 +++++
>  1 files changed, 5 insertions(+), 0 deletions(-)
> 
> diff --git a/meta/recipes-support/apr/apr-util_1.5.2.bb 
> b/meta/recipes-support/apr/apr-util_1.5.2.bb
> index ea0f7fb..d6ae394 100644
> --- a/meta/recipes-support/apr/apr-util_1.5.2.bb
> +++ b/meta/recipes-support/apr/apr-util_1.5.2.bb
> @@ -34,6 +34,11 @@ do_configure_append() {
>       if [ "${CLASSOVERRIDE}" = "class-target" ]; then
>               cp ${STAGING_DATADIR}/apr/apr_rules.mk ${S}/build/rules.mk
>       fi
> +
> +     # When ccache is enabled, libtool needs --tag=CC to choose correct 
> handle methods.
> +     if [ -f ${S}/build/rules.mk ]; then
> +             sed -i "s,^LTFLAGS,LTFLAGS      = --silent 
> --tag=CC\n#LTFLAGS,g" ${S}/build/rules.mk
> +     fi
>  }
>  do_configure_prepend_class-native() {
>       cp ${STAGING_DATADIR_NATIVE}/apr/apr_rules.mk ${S}/build/rules.mk
> -- 
> 1.7.3.5
> 
> _______________________________________________
> Openembedded-core mailing list
> [email protected]
> http://lists.openembedded.org/mailman/listinfo/openembedded-core

-- 
Martin 'JaMa' Jansa     jabber: [email protected]

Attachment: signature.asc
Description: Digital signature

_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core

Reply via email to