aboutsummaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2013-06-05 14:51:28 +0300
committerMartin Storsjö <martin@martin.st>2013-06-10 14:32:13 +0300
commit3965d404ccd9b6cac95c4aee6cb668845031b685 (patch)
tree60030eb42b65b7fa88a339f8bce84a4d13beeecb /configure
parent3fd0d166aa240ef547482d1af397c4a653031c2d (diff)
downloadffmpeg-3965d404ccd9b6cac95c4aee6cb668845031b685.tar.gz
configure: Don't add -fPIC on windows targets
This avoids warnings about this option not having any effect on this platform. We still want to enable the pic configure item for these platforms (if detected via the compiler builtin define __PIC__) to get proper inline assembly workarounds. Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure8
1 files changed, 7 insertions, 1 deletions
diff --git a/configure b/configure
index c558aeb7f2..25fab1da33 100755
--- a/configure
+++ b/configure
@@ -3350,7 +3350,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
}