summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-06-11 08:53:31 +0200
committerMichael Niedermayer <michaelni@gmx.at>2013-06-11 08:53:37 +0200
commit529ebc90f2423aed54e5534427dc5901a3cc4a60 (patch)
treea201409b503ece417ef392a21885ff6a99870600 /configure
parentf556f27d298ab685842b5bc33142f15611e89291 (diff)
parent3965d404ccd9b6cac95c4aee6cb668845031b685 (diff)
Merge commit '3965d404ccd9b6cac95c4aee6cb668845031b685'
* commit '3965d404ccd9b6cac95c4aee6cb668845031b685': configure: Don't add -fPIC on windows targets Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure8
1 files changed, 7 insertions, 1 deletions
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
}