GnuTls: Fixed compilation of gnutlsxx

Simon Josefsson simon at josefsson.org
Sat Aug 14 12:51:53 CEST 2010


"carlo.bramix at libero.it" <carlo.bramix at libero.it> writes:

> Hello,
> I tried to compile GnuTls in Mingw+Msys and I got an error because 
> gnutls/gnutls.h was not found with gnutlsxx.c
> After a quick check I discovered that there was a mistake into lib/Makefile.am 
> because there was a wrong hardcoded path to includes into 
> libgnutlsxx_la_CPPFLAGS.
> I guess the compilation had been possible with some luck if there was already 
> a gnutls/gnutls.h installed into the global path. Otherwise, into an empty 
> enviroment like mine, the compilation always aborted.
> Attached patch fixes the problem.
> I hope you will find this very little fix useful and it could be possible to 
> commit it without the need of subscribing to bugzilla.

Hi.  Thanks, I have pushed a similar fix to the gnutls-2.8 branch.  It
was already solved on the master branch.

/Simon

> Carlo Bramini.
> diff -r -u gnutls-2.8.6-old//lib/Makefile.am gnutls-2.8.6-new//lib/Makefile.am
> --- gnutls-2.8.6-old//lib/Makefile.am	2009-06-02 19:07:14 +0000
> +++ gnutls-2.8.6-new//lib/Makefile.am	2010-08-13 14:10:08 +0000
> @@ -138,7 +138,7 @@
>  # C++ library
>  
>  if ENABLE_CXX
> -libgnutlsxx_la_CPPFLAGS = -I$(top_srcdir)/includes -I../includes
> +libgnutlsxx_la_CPPFLAGS = -I$(top_srcdir)/includes -I$(builddir)/includes
>  
>  AM_CXXFLAGS = -I$(top_srcdir)/includes/
>  
> _______________________________________________
> Gnutls-devel mailing list
> Gnutls-devel at gnu.org
> http://lists.gnu.org/mailman/listinfo/gnutls-devel




More information about the Gnutls-devel mailing list