ARM: enable PIC for shared libs
authorMåns Rullgård <mans@mansr.com>
Sun, 11 Oct 2009 10:15:45 +0000 (10:15 +0000)
committerMåns Rullgård <mans@mansr.com>
Sun, 11 Oct 2009 10:15:45 +0000 (10:15 +0000)
Recent versions of gcc generate movw/movt pairs, and the linkers fail
to handle the associated relocations properly.  Those responsible at
Codesourcery have refused to consider fixing this.  Blame them for
making shared libraries slower than they need to be.

Originally committed as revision 20203 to svn://svn.ffmpeg.org/ffmpeg/trunk

configure

index 8c4d767..92bc1ae 100755 (executable)
--- a/configure
+++ b/configure
@@ -1758,6 +1758,7 @@ case "$arch" in
     ;;
     arm|armv[4567]*l)
         arch="arm"
+        spic=$shared
     ;;
     avr32)
     ;;