Allow icc to compile with optimizations (pentium3, pentium4 or core2).
authorCarl Eugen Hoyos <cehoyos@rainbow.studorg.tuwien.ac.at>
Sun, 11 May 2008 17:46:55 +0000 (17:46 +0000)
committerCarl Eugen Hoyos <cehoyos@rainbow.studorg.tuwien.ac.at>
Sun, 11 May 2008 17:46:55 +0000 (17:46 +0000)
Originally committed as revision 13119 to svn://svn.ffmpeg.org/ffmpeg/trunk

configure

index 6403f94..52e8f9f 100755 (executable)
--- a/configure
+++ b/configure
@@ -1827,6 +1827,8 @@ if $cc --version | grep -q Intel; then
   # 11030: Warning unknown option --as-needed
   # 10156: ignoring option '-export'; no argument required
   check_ldflags -wd10156,11030
+  # Allow to compile with optimizations
+  check_ldflags -march=$cpu
 fi
 
 # PIC flags for shared library objects where they are needed