[Xapian-tickets] [Xapian] #808: msys64 CPPFLAGS=-D_FORTIFY_SOURCE=[2, 1] did not build

Xapian nobody at xapian.org
Wed Mar 24 05:14:40 GMT 2021


#808: msys64 CPPFLAGS=-D_FORTIFY_SOURCE=[2,1] did not build
--------------------------+--------------------------------------
 Reporter:  xpbxf4        |             Owner:  Olly Betts
     Type:  defect        |            Status:  reopened
 Priority:  normal        |         Milestone:  1.4.19
Component:  Build system  |           Version:  1.4.18
 Severity:  normal        |        Resolution:
 Keywords:  gcc FORTIFY   |        Blocked By:
 Blocking:                |  Operating System:  Microsoft Windows
--------------------------+--------------------------------------
Changes (by Olly Betts):

 * status:  closed => reopened
 * resolution:  fixed =>
 * component:  Other => Build system
 * milestone:   => 1.4.19

Comment:

 The build should really work out of the box if possible, without the user
 working out what additional compiler options they need.  Or if that's too
 hard we should at least document additional options and when and where
 they may be needed.

 It seems there are essentially the two options you identified - don't use
 `_FORTIFY_SOURCE` on mingw-w64 or automatically add `-lssp` to the linked
 libraries if it's required.  Keeping `_FORTIFY_SOURCE` on is nice, but
 it's not really a must and having to probe for required libraries may be a
 bit fiddly.  I'll take a look.
-- 
Ticket URL: <https://trac.xapian.org/ticket/808#comment:3>
Xapian <https://xapian.org/>
Xapian


More information about the Xapian-tickets mailing list