1
mirror of https://git.videolan.org/git/ffmpeg.git synced 2024-09-28 16:02:17 +02:00

configure: Don't add -fPIC to asflags when targeting windows

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>
This commit is contained in:
Martin Storsjö 2017-10-12 11:04:53 +03:00
parent f951837ce5
commit 0ca6640991

2
configure vendored
View File

@ -4219,9 +4219,9 @@ enable_weak_pic() {
;;
*)
add_cflags -fPIC
add_asflags -fPIC
;;
esac
add_asflags -fPIC
}
enabled pic && enable_weak_pic