> On Aug 20, 2016, at 10:19 AM, Armin Kuster <akuster...@gmail.com> wrote:
> 
> ./llvm/include/llvm/Support/AlignOf.h:57:24: error: expected unqualified-id 
> before 'alignof'
> static inline unsigned alignof() { return AlignOf<T>::Alignment; }
>                        ^~~~~~~

For this error, perhaps its better to ifdef this function definition with

#if __cplusplus <= 199711L
#endif

since it has been added to standard after c++98, that patch (if works) can be 
upstreamed too.


> 
> compile with -std=gnu++98
> 
> alt in future is to us llvm3X and configure --with-system-llvm 
> --with-llvm-linking=dynamic.
> 
> Signed-off-by: Armin Kuster <akuster...@gmail.com>
> ---
> recipes-security/clamav/clamav_0.99.2.bb | 2 ++
> 1 file changed, 2 insertions(+)
> 
> diff --git a/recipes-security/clamav/clamav_0.99.2.bb 
> b/recipes-security/clamav/clamav_0.99.2.bb
> index 184d605..73905a7 100644
> --- a/recipes-security/clamav/clamav_0.99.2.bb
> +++ b/recipes-security/clamav/clamav_0.99.2.bb
> @@ -50,6 +50,8 @@ EXTRA_OECONF += " --with-user=${UID}  --with-group=${GID} \
>             --disable-rpath \
>             "
> 
> +CXXFLAGS += "--std=gnu++98"
> +
> do_configure () {
>     cd ${S}
>     ./configure ${CONFIGUREOPTS} ${EXTRA_OECONF}
> --
> 2.7.4
> 
> --
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto

Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail

-- 
_______________________________________________
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto

Reply via email to