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

Peter Korsgaard peter at korsgaard.com
Tue Mar 27 11:22:18 UTC 2018


>>>>> "Petr" == Petr Vorel <petr.vorel at gmail.com> writes:

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

-- 
Bye, Peter Korsgaard



More information about the buildroot mailing list