1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

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>
This commit is contained in:
Martin Storsjö 2013-06-05 14:51:28 +03:00
parent 3fd0d166aa
commit 3965d404cc

8
configure vendored
View File

@ -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
}