[Buildroot] [PATCH v1 1/2] gnutls: needs C++ support

Petr Vorel petr.vorel at gmail.com
Tue Mar 27 14:23:33 UTC 2018


Hi Peter,

> Hi,

>  >> config BR2_PACKAGE_WEBKITGTK_MULTIMEDIA
>  >> bool "multimedia support"

>  > The only thing I can know and can confirm on this issue is that Connman and NetworkManager
>  > depend on GnuTLS (NetworkManager can use NSS, but that IMHO not in buildroot).

> It is (libnss).

>  > Looking at GnuTLS it looks like it includes <cstdlib>, hence really depends on C++
>  > toolchain.

> Yes, but those are conditionally includes:

> /* Many header files from the libstdc++ coming with g++ 3.3 or newer include
>    <libintl.h>, which chokes if dcgettext is defined as a macro.  So include
>    it now, to make later inclusions of <libintl.h> a NOP.  */
> #if defined(__cplusplus) && defined(__GNUG__) && (__GNUC__ >= 3)
> # include <cstdlib>
> # if (__GLIBC__ >= 2 && !defined __UCLIBC__) || _GLIBCXX_HAVE_LIBINTL_H
> #  include <libintl.h>
> # endif
> #endif

You're right, thanks for update on both.


Kind regards,
Petr



More information about the buildroot mailing list