diff --git a/configure b/configure index 268c9bc836..b606447bf4 100755 --- a/configure +++ b/configure @@ -3716,7 +3716,13 @@ enable_weak_pic() { disabled pic && return enable pic add_cppflags -DPIC - add_cflags -fPIC + case "$target_os" in + mingw*|cygwin*) + ;; + *) + add_cflags -fPIC + ;; + esac add_asflags -fPIC }