aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarl Eugen Hoyos <cehoyos@ag.or.at>2014-05-04 17:16:26 +0200
committerCarl Eugen Hoyos <cehoyos@ag.or.at>2014-05-04 17:16:26 +0200
commit431c7bd3f49eb0dc44638e5d395d82569ba065e7 (patch)
treeffc267045217edf63e877babbe781feffe2914ff
parenta64df19c5bd22f543a254a7b93c82ade50038ff5 (diff)
downloadffmpeg-431c7bd3f49eb0dc44638e5d395d82569ba065e7.tar.gz
Map --enable-lto to -ipo when compiling with icc.
-rwxr-xr-xconfigure10
1 files changed, 10 insertions, 0 deletions
diff --git a/configure b/configure
index 18b276c7ee..687e155eb6 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)