[libav-devel] [PATCH] configure: add --enable-lto option

2012-10-03 Thread Mans Rullgard
This works with gcc. Other compilers might need to have a flag mapping added. Signed-off-by: Mans Rullgard m...@mansr.com --- configure | 38 +++--- 1 file changed, 27 insertions(+), 11 deletions(-) diff --git a/configure b/configure index 6d68424..12f9872

Re: [libav-devel] [PATCH] configure: add --enable-lto option

2012-10-03 Thread Luca Barbato
On 10/03/2012 08:46 PM, Mans Rullgard wrote: This works with gcc. Other compilers might need to have a flag mapping added. which version you tested with lto? 4.7.2 can work? lu ___ libav-devel mailing list libav-devel@libav.org

Re: [libav-devel] [PATCH] configure: add --enable-lto option

2012-10-03 Thread Luca Barbato
On 10/03/2012 08:46 PM, Mans Rullgard wrote: -check_cflags -fno-tree-vectorize +check_optflags -fno-tree-vectorize uhm? ___ libav-devel mailing list libav-devel@libav.org https://lists.libav.org/mailman/listinfo/libav-devel

Re: [libav-devel] [PATCH] configure: add --enable-lto option

2012-10-03 Thread Luca Barbato
On 10/03/2012 08:56 PM, Luca Barbato wrote: On 10/03/2012 08:46 PM, Mans Rullgard wrote: -check_cflags -fno-tree-vectorize +check_optflags -fno-tree-vectorize uhm? Ignore, I misread =P ___ libav-devel mailing list libav-devel@libav.org

Re: [libav-devel] [PATCH] configure: add --enable-lto option

2012-10-03 Thread Måns Rullgård
Luca Barbato lu_z...@gentoo.org writes: On 10/03/2012 08:46 PM, Mans Rullgard wrote: This works with gcc. Other compilers might need to have a flag mapping added. which version you tested with lto? 4.7.2 can work? Some 4.7 seemed to work. 4.8 failed to link. -- Måns Rullgård

Re: [libav-devel] [PATCH] configure: add --enable-lto option

2012-10-03 Thread Måns Rullgård
Luca Barbato lu_z...@gentoo.org writes: On 10/03/2012 08:46 PM, Mans Rullgard wrote: -check_cflags -fno-tree-vectorize +check_optflags -fno-tree-vectorize uhm? That is necessary to disable the vectoriser during linking. -- Måns Rullgård m...@mansr.com

Re: [libav-devel] [PATCH] configure: add --enable-lto option

2012-10-03 Thread Luca Barbato
On 10/03/2012 08:46 PM, Mans Rullgard wrote: This works with gcc. Other compilers might need to have a flag mapping added. The other I know about (clang, path64) have some more exotic ways (clang requires to pass around --plugin theirplugin.so to everything currently) lu

Re: [libav-devel] [PATCH] configure: add --enable-lto option

2012-10-03 Thread Måns Rullgård
Luca Barbato lu_z...@gentoo.org writes: On 10/03/2012 08:46 PM, Mans Rullgard wrote: This works with gcc. Other compilers might need to have a flag mapping added. The other I know about (clang, path64) have some more exotic ways (clang requires to pass around --plugin theirplugin.so to

Re: [libav-devel] [PATCH] configure: add --enable-lto option

2012-10-03 Thread Luca Barbato
On 10/03/2012 10:00 PM, Måns Rullgård wrote: Luca Barbato lu_z...@gentoo.org writes: On 10/03/2012 08:46 PM, Mans Rullgard wrote: This works with gcc. Other compilers might need to have a flag mapping added. The other I know about (clang, path64) have some more exotic ways (clang