aboutsummaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2017-10-12 11:03:08 +0300
committerMartin Storsjö <martin@martin.st>2017-10-12 21:49:08 +0300
commitf951837ce58e8588b175fb53a76fd453a81528ec (patch)
tree13f583d917d8dc0ac13d485a404bd6d072cf0a7b /configure
parent7ac092d05de487d088bc96ab4a7bd6207fbfa98c (diff)
downloadffmpeg-f951837ce58e8588b175fb53a76fd453a81528ec.tar.gz
configure: Don't add -fPIC to cflags for target_os=win32
We skipped adding it to cflags for mingw/cygwin configurations where the compiler either complains loudly or even errors out; do the same for target_os=win32, for the case when building with clang in msvc mode. This wasn't needed for the actual msvc before, since msvc uses msvc_common_flags to filter out this flag from cflags. When building with clang in msvc mode, no such filter is used. This fixes building shared libraries with clang in msvc mode. Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure b/configure
index 75f9fa91eb..4661d9942f 100755
--- a/configure
+++ b/configure
@@ -4215,7 +4215,7 @@ enable_weak_pic() {
enable pic
add_cppflags -DPIC
case "$target_os" in
- mingw*|cygwin*)
+ mingw*|cygwin*|win*)
;;
*)
add_cflags -fPIC