[Xapian-devel] -D_FORTIFY_SOURCE (was Re: [Xapian-commits] 7903: trunk/xapian-core/)

Olly Betts olly at survex.com
Wed Mar 7 18:50:27 GMT 2007


Hmm, perhaps we should put this in config.h instead of using a configure
probe:

#if defined __GNUC__ && !defined _FORTIFY_SOURCE
# define _FORTIFY_SOURCE 2
#endif

Then the user (or distro packager) can easily override our choice when
building xapian by using:

./configure CPPFLAGS=-D_FORTIFY_SOURCE=0

or:

./configure CPPFLAGS=-D_FORTIFY_SOURCE=1

Any objections?

Cheers,
    Olly



More information about the Xapian-devel mailing list