From patchwork Thu Oct 12 08:29:07 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [1/4] configure: Don't add -fPIC to cflags for target_os=win32 X-Patchwork-Submitter: =?utf-8?q?Martin_Storsj=C3=B6?= X-Patchwork-Id: 63929 Message-Id: <1507796950-7328-1-git-send-email-martin@martin.st> To: libav-devel@libav.org Date: Thu, 12 Oct 2017 11:29:07 +0300 From: =?utf-8?q?Martin_Storsj=C3=B6?= List-Id: libav development 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. --- configure | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure b/configure index 960c1ed..0d28b3b 100755 --- a/configure +++ b/configure @@ -4258,7 +4258,7 @@ enable_weak_pic() { enable pic add_cppflags -DPIC case "$target_os" in - mingw*|cygwin*) + mingw*|cygwin*|win*) ;; *) add_cflags -fPIC