[FFmpeg-devel] [PATCH] Allow optimization for pentium4 and core2 with icc

Carl Eugen Hoyos cehoyos
Sun May 11 15:25:07 CEST 2008


Hi!

Attached patch allows to compile with icc when using --cpu=pentium4 or 
--cpu=core2. Both optimizations need (at least) linking against -lsvml 
which is done with this patch.

Please comment, Carl Eugen
-------------- next part --------------
Index: configure
===================================================================
--- configure	(revision 13118)
+++ configure	(working copy)
@@ -1827,6 +1827,8 @@
   # 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



More information about the ffmpeg-devel mailing list