[FFmpeg-cvslog] configure: Don't add -fPIC on windows targets
Martin Storsjö
git at videolan.org
Tue Jun 11 09:00:41 CEST 2013
ffmpeg | branch: master | Martin Storsjö <martin at martin.st> | Wed Jun 5 14:51:28 2013 +0300| [3965d404ccd9b6cac95c4aee6cb668845031b685] | committer: Martin Storsjö
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 at martin.st>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=3965d404ccd9b6cac95c4aee6cb668845031b685
---
configure | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/configure b/configure
index c558aeb..25fab1d 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
}
More information about the ffmpeg-cvslog
mailing list