Module: libav Branch: master Commit: f951837ce58e8588b175fb53a76fd453a81528ec
Author: Martin Storsjö <[email protected]> Committer: Martin Storsjö <[email protected]> Date: Thu Oct 12 11:03:08 2017 +0300 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ö <[email protected]> --- configure | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure b/configure index 75f9fa9..4661d99 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 _______________________________________________ libav-commits mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-commits
