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

Richard Boulton richard at lemurconsulting.com
Wed Mar 7 19:34:16 GMT 2007


Olly Betts wrote:
> 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?

None.



More information about the Xapian-devel mailing list