diff options
author | Martin Storsjö <martin@martin.st> | 2013-06-05 14:51:28 +0300 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2013-06-10 14:32:13 +0300 |
commit | 3965d404ccd9b6cac95c4aee6cb668845031b685 (patch) | |
tree | 60030eb42b65b7fa88a339f8bce84a4d13beeecb /configure | |
parent | 3fd0d166aa240ef547482d1af397c4a653031c2d (diff) | |
download | ffmpeg-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-x | configure | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -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 } |