[FFmpeg-cvslog] r23616 - trunk/configure

mru subversion
Tue Jun 15 20:06:28 CEST 2010


Author: mru
Date: Tue Jun 15 20:06:28 2010
New Revision: 23616

Log:
configure: fix symver detection with icc 10

Apparently the compiler sometimes bypasses the normal assembler, in
which case the asm label variant works.  If the file contains any
inline asm, this bypassing is not done, and the assembler chokes on
invalid syntax.  Inserting a dummy asm() statement in the test when
the compiler supports it makes sure no shortcuts are taken and the
test fails as it should.

Modified:
   trunk/configure

Modified: trunk/configure
==============================================================================
--- trunk/configure	Tue Jun 15 17:24:28 2010	(r23615)
+++ trunk/configure	Tue Jun 15 20:06:28 2010	(r23616)
@@ -252,6 +252,8 @@ EOF
   exit 0
 }
 
+quotes='""'
+
 log(){
     echo "$@" >> $logfile
 }
@@ -2723,7 +2725,7 @@ if test_ldflags -Wl,--version-script,$TM
     append SHFLAGS '-Wl,--version-script,\$(SUBDIR)lib\$(NAME).ver'
     check_cc <<EOF && enable symver_asm_label
 void ff_foo(void) __asm__ ("av_foo at VERSION");
-void ff_foo(void) {}
+void ff_foo(void) { ${inline_asm+__asm__($quotes);} }
 EOF
     check_cc <<EOF && enable symver_gnu_asm
 __asm__(".symver ff_foo,av_foo at VERSION");



More information about the ffmpeg-cvslog mailing list