diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-05-04 18:24:21 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-05-04 18:30:06 +0200 |
commit | aeeb3d460525364e61051e7986e5522bedcd56ec (patch) | |
tree | 2500c718556627bc04ccf17797dfa739823979e5 | |
parent | c9a12fdd2d29917b088fa2f593abd51926ead46b (diff) | |
parent | 431c7bd3f49eb0dc44638e5d395d82569ba065e7 (diff) | |
download | ffmpeg-aeeb3d460525364e61051e7986e5522bedcd56ec.tar.gz |
Merge remote-tracking branch 'cehoyos/master'
* cehoyos/master:
Map --enable-lto to -ipo when compiling with icc.
Disable inline_asm_direct_symbol_refs if lto was requested.
Merged-by: Michael Niedermayer <michaelni@gmx.at>
-rwxr-xr-x | configure | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -3109,6 +3109,15 @@ icl_flags(){ done } +icc_flags(){ + for flag; do + case $flag in + -flto) echo -ipo ;; + *) echo $flag ;; + esac + done +} + pgi_flags(){ for flag; do case $flag in @@ -3230,6 +3239,7 @@ probe_cc(){ _cflags_speed='-O3' _cflags_size='-Os' _cflags_noopt='-O1' + _flags_filter=icc_flags elif $_cc -v 2>&1 | grep -q xlc; then _type=xlc _ident=$($_cc -qversion 2>/dev/null | head -n1) @@ -4904,6 +4914,7 @@ if enabled lto; then test "$cc_type" != "$ld_type" && die "LTO requires same compiler and linker" check_cflags -flto check_ldflags -flto $cpuflags + disable inline_asm_direct_symbol_refs fi check_optflags $optflags |