[FFmpeg-cvslog] Map --enable-lto to -ipo when compiling with icc.
Carl Eugen Hoyos
git at videolan.org
Sun May 4 18:31:55 CEST 2014
ffmpeg | branch: master | Carl Eugen Hoyos <cehoyos at ag.or.at> | Sun May 4 17:16:26 2014 +0200| [431c7bd3f49eb0dc44638e5d395d82569ba065e7] | committer: Carl Eugen Hoyos
Map --enable-lto to -ipo when compiling with icc.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=431c7bd3f49eb0dc44638e5d395d82569ba065e7
---
configure | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/configure b/configure
index 18b276c..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)
More information about the ffmpeg-cvslog
mailing list