Commit 574ec8ca authored by mru's avatar mru

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.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@23616 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 3eb77696
...@@ -252,6 +252,8 @@ EOF ...@@ -252,6 +252,8 @@ EOF
exit 0 exit 0
} }
quotes='""'
log(){ log(){
echo "$@" >> $logfile echo "$@" >> $logfile
} }
...@@ -2723,7 +2725,7 @@ if test_ldflags -Wl,--version-script,$TMPV; then ...@@ -2723,7 +2725,7 @@ if test_ldflags -Wl,--version-script,$TMPV; then
append SHFLAGS '-Wl,--version-script,\$(SUBDIR)lib\$(NAME).ver' append SHFLAGS '-Wl,--version-script,\$(SUBDIR)lib\$(NAME).ver'
check_cc <<EOF && enable symver_asm_label check_cc <<EOF && enable symver_asm_label
void ff_foo(void) __asm__ ("av_foo@VERSION"); void ff_foo(void) __asm__ ("av_foo@VERSION");
void ff_foo(void) {} void ff_foo(void) { ${inline_asm+__asm__($quotes);} }
EOF EOF
check_cc <<EOF && enable symver_gnu_asm check_cc <<EOF && enable symver_gnu_asm
__asm__(".symver ff_foo,av_foo@VERSION"); __asm__(".symver ff_foo,av_foo@VERSION");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment