[gnutls-dev]libgnutls-config --cflags

Arkadiusz Miskiewicz misiek@pld.ORG.PL
Fri Aug 16 23:34:01 2002


Nikos Mavroyanopoulos <nmav@gnutls.org> writes:

> On Thu, Aug 15, 2002 at 11:30:41AM -0700, Neil Spring wrote:
>=20
> > Would it be a bad idea to have 'libgnutls-config --cflags'
> > return -I/usr/include/gnutls instead of -I/usr/include?
> > If it did, no source changes would be required to support
> > wmbiff.  If gnutls-using apps are supposed to all change to
> > '#include <gnutls/gnutls.h>' that's fine, I just want to
> > make sure that the possibly better solution isn't going to
> > come along in the next release.
>=20
> Yes the idea was to use <gnutls/gnutls.h> instead of just=20
> <gnutls.h>. That is to prevent polluting namespace, since
> some include files may be common with other libraries.

If libgnutls-config --cflags returns -I/usr/include at this
moment then you'll get:

[misiek@arm misiek]$ gcc -I/usr/include test.c
cc1: warning: changing search order for system directory "/usr/include"
cc1: warning:   as it has already been specified as a non-system directory

with gcc 3.1 all the time if gcc is installed with /usr as --prefix.

> > thanks,
> > -neil

> Nikos Mavroyanopoulos

--=20
Arkadiusz Mi=B6kiewicz   IPv6 ready PLD Linux at http://www.pld.org.pl
misiek(at)pld.org.pl   AM2-6BONE, 1024/3DB19BBD, arekm(at)ircnet, PWr