summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-05-04 18:24:21 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-05-04 18:30:06 +0200
commitaeeb3d460525364e61051e7986e5522bedcd56ec (patch)
tree2500c718556627bc04ccf17797dfa739823979e5
parentc9a12fdd2d29917b088fa2f593abd51926ead46b (diff)
parent431c7bd3f49eb0dc44638e5d395d82569ba065e7 (diff)
downloadffmpeg-streaming-aeeb3d460525364e61051e7986e5522bedcd56ec.zip
ffmpeg-streaming-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-xconfigure11
1 files changed, 11 insertions, 0 deletions
diff --git a/configure b/configure
index 32ea79f..687e155 100755
--- a/configure
+++ b/configure
@@ -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
OpenPOWER on IntegriCloud