[Xapian-devel] Re: [Xapian-commits] Changes in xapian/xapian-bindings/ xapian/xapian-bindings/guile/ xapian/xapian-bindings/php4/ xapian/xapian-bindings/python/ xapian/xapian-bindings/tcl8/

Olly Betts olly at survex.com
Tue May 11 18:39:35 BST 2004


On Tue, May 11, 2004 at 06:11:36PM +0100, Richard Boulton wrote:
>   "xapian-config --cxxflags" assumes that it doesn't need to emit
>   -I/usr/include in this situation (presumably on the basis that
>   any sane C compiler will already have that on its path).

Worse, passing -I/usr/include causes problems with some versions of GCC
on some platforms as GCC generates "fixed" versions of vendor supplied
include headers at build time.  Normally these are used instead of those
in /usr/include, but if you explicitly pass /usr/include you get the
non-fixed versions.  The most recent GCC versions ignore "-I/usr/include"
in this situation.

So that's why xapian-config carefully excludes -I/usr/include from
--cxxflags.

I'll put the above explanation as a comment in the script...

Cheers,
    Olly




More information about the Xapian-devel mailing list