#50 unrecognized command line option "-fno-stack-protector"

open
nobody
None
5
2014-08-26
2012-12-19
No

Building graphite2 1.2.0 on OS X 10.4 Tiger on PowerPC G4 fails with the error message:

cc1plus: error: unrecognized command line option "-fno-stack-protector"

Discussion

  • Ryan Schmidt

    Ryan Schmidt - 2013-02-05

    In MacPorts we are now removing the -fno-stack-protector argument, when using Apple gcc 4.0.1:

    https://trac.macports.org/changeset/102365

    My hope is that Apple gcc 4.0.1 does not have a stack protector, or that the stack protector is off by default, and that therefore this change will be ok.

     
  • Martin Hosken

    Martin Hosken - 2013-02-05

    -fno-stack-protector is a speedup optimissation given we do very thorough testing via valgrind, we feel it OK to turn this off. The option is irreleveant if there is no -fsatck-protector. If there is, well it will just slow things down slightly, but hopefully not too much. So removal seems a good plan to me, but only for the versions of gcc for which removal is necessary.

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks