Re: GCC LTO options not correctly handled

2019-04-15 Thread Thomas Jahns
On 4/12/19 6:04 PM, Bob Friesenhahn wrote: On Fri, 12 Apr 2019, Laurent Stacul wrote: As I don't have the ownership on the project, I need to patch (and provide a patch upstream). But this can be tedious on big projects, so it would great if libtool don't filter the options like -fno-lto,

Re: GCC LTO options not correctly handled

2019-04-12 Thread Bob Friesenhahn
On Fri, 12 Apr 2019, Laurent Stacul wrote: As I don't have the ownership on the project, I need to patch (and provide a patch upstream). But this can be tedious on big projects, so it would great if libtool don't filter the options like -fno-lto, -fno-whopr. The path of least resistance is to

GCC LTO options not correctly handled

2019-04-12 Thread Laurent Stacul
Hello, I have a flow in which I compile my object files with the Link-Time Optimization (LTO) with gcc (option -flto -ffat-lto-objects). At link time, I can decide if I want the LTO or not. When I decide I don't want to use LTO for the final binary, I set -fno-lto in the LDFLAGS. But depending