Re: [hatari-devel] Enabling _FORTIFY_SOURCE for Debug builds?

[ Thread Index | Date Index | More lists.tuxfamily.org/hatari-devel Archives ]


Am Sun, 14 Apr 2024 11:47:25 +0300
schrieb Eero Tamminen <oak@xxxxxxxxxxxxxx>:

> Hi Thomas,
> 
> On 13.4.2024 22.53, Thomas Huth wrote:
> > Weird, I'm using 3.27.7 (on Fedora), and for me, it does not add the -O0
> > after the -g ... but OK, if there are versions that add -O0 automatically,
> > it's likely better to remove the -D_FORTIFY_SOURCE again. Done now.  
> 
> Why you moved FORTIFY_SOURCE behind Debug check few months ago:
> https://github.com/hatari/hatari/commit/adc8ae2c9d0a28886e8f70f24ebfceb5097e54a0
> ?
> 
> The reason for it being in the options was catching things before 
> release i.e. before distros package new Hatari release and complain 
> about things it warns about (some distros enable  FORTIFY_SOURCE for 
> packages, and Mac tooling also enables some similar checks).
> 
> => Wouldn't it have made more sense to invert your Debug check?  

Sorry, I don't quite get your suggestion... you noticed that the line was
completely commented out before adc8ae2c9d0a288, did you?

 Thomas



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/