Using LTO with libtool

2013-05-05 Thread Schrober
Hi, I wanted to use link-time optimization (LTO/-flto) of GCC with libtool. I thought I only have to add -flto to CFLAGS and LDFLAGS and then I am finished. But it seems that this is not enough because some CFLAGS aren't copied to the linker command (e.g. -g). This results in a binary with

Re: Using LTO with libtool

2013-05-05 Thread Bob Friesenhahn
On Sun, 5 May 2013, Schrober wrote: Hi, I wanted to use link-time optimization (LTO/-flto) of GCC with libtool. I thought I only have to add -flto to CFLAGS and LDFLAGS and then I am finished. But it seems that this is not enough because some CFLAGS aren't copied to the linker command (e.g.