From 995f96bfb4a2636037be76ecadaf6c3369494d4f Mon Sep 17 00:00:00 2001 From: Olly Betts Date: Mon, 19 Sep 2022 10:49:34 +1200 Subject: [PATCH] INSTALL: Mention -D_FORTIFY_SOURCE=3 too Relatively new (seems to require GCC 12). (cherry picked from commit 245150bfe1b94af3439516e62ce11ea03db0402c) --- xapian-core/INSTALL | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/xapian-core/INSTALL b/xapian-core/INSTALL index 81a724a7c..3530ab26a 100644 --- a/xapian-core/INSTALL +++ b/xapian-core/INSTALL @@ -160,12 +160,15 @@ so: ./configure CPPFLAGS=-D_FORTIFY_SOURCE=0 -Or you can set the "fortification level" to 1 instead of 2: +Or you can set the "fortification level" to 1 or (with new enough glibc and +GCC) 3 instead of 2: ./configure CPPFLAGS=-D_FORTIFY_SOURCE=1 -If you're disabling it because it causes problems, please also report this to -us (via the bug tracker or mailing lists). +./configure CPPFLAGS=-D_FORTIFY_SOURCE=3 + +If you're disabling _FORTIFY_SOURCE because it causes problems, please also +report this to us (via the bug tracker or mailing lists). On mingw-w64 Xapian doesn't automatically enable _FORTIFY_SOURCE as an extra library is needed. You can enable it by hand and specify this library like -- 2.11.4.GIT