From: Mike F. <va...@ge...> - 2013-08-27 16:18:38
|
On Tuesday 27 August 2013 07:04:34 ch...@su... wrote: > --- a/configure.ac > +++ b/configure.ac > @@ -30,6 +30,8 @@ AC_PROG_YACC > > AC_PREFIX_DEFAULT(/opt/ltp) > > +CPPFLAGS="$CPPFLAGS -D_FORTIFY_SOURCE=2" unfortunately that does not work. this snippet from coreutils is probably better: AH_VERBATIM([FORTIFY_SOURCE], [/* Enable compile-time and run-time bounds-checking, and some warnings, without upsetting glibc 2.15+. */ #if !defined _FORTIFY_SOURCE && defined __OPTIMIZE__ && __OPTIMIZE__ # define _FORTIFY_SOURCE 2 #endif ]) -mike |