From e276d9e82d91ad3aed8d8aedab771e7509021cc2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A5ns=20Rullg=C3=A5rd?= Date: Sun, 11 Oct 2009 14:32:18 +0000 Subject: [PATCH] ARM: force PIC for shared libs only with ARMv6T2 and later Originally committed as revision 20207 to svn://svn.ffmpeg.org/ffmpeg/trunk --- configure | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/configure b/configure index 92bc1ae04c..0a44b14868 100755 --- a/configure +++ b/configure @@ -1758,7 +1758,6 @@ case "$arch" in ;; arm|armv[4567]*l) arch="arm" - spic=$shared ;; avr32) ;; @@ -2058,11 +2057,14 @@ check_deps $ARCH_EXT_LIST disabled optimizations || check_cflags -fomit-frame-pointer -if enabled pic; then +enable_pic() { + enable pic add_cppflags -DPIC add_cflags -fPIC add_asflags -fPIC -fi +} + +enabled pic && enable_pic check_cc <