]> git.sesse.net Git - ffmpeg/commitdiff
configure: Don't add -fPIC to asflags when targeting windows
authorMartin Storsjö <martin@martin.st>
Thu, 12 Oct 2017 08:04:53 +0000 (11:04 +0300)
committerMartin Storsjö <martin@martin.st>
Thu, 12 Oct 2017 18:49:13 +0000 (21:49 +0300)
On X86 windows, asflags weren't actually ever used for anything,
since assembling used x86asflags instead, and that flags list
had -DPIC already.

This fixes building shared libraries with clang for arm/aarch64
windows. (This wasn't an issue when in msvc mode before, since
we don't try to enable pic at all there, since the msvc armasm
assembler fails on our pic constructs there.)

Signed-off-by: Martin Storsjö <martin@martin.st>
configure

index 4661d9942ff57fe4bf387a1ba794a02a855a2aa1..96b99b0501ad2575606a19447f57663943b865c6 100755 (executable)
--- a/configure
+++ b/configure
@@ -4219,9 +4219,9 @@ enable_weak_pic() {
         ;;
     *)
         add_cflags -fPIC
+        add_asflags -fPIC
         ;;
     esac
-    add_asflags  -fPIC
 }
 
 enabled pic && enable_weak_pic