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 <