[x264-devel] configure: Always enable PIC in aarch64 assembly for apple platforms
Martin Storsjö
git at videolan.org
Sun May 21 23:59:58 CEST 2017
x264 | branch: master | Martin Storsjö <martin at martin.st> | Thu Mar 23 15:05:37 2017 +0200| [93340ca300e7ce66f49e41b7c2ef4a0492a7e57c] | committer: Henrik Gramner
configure: Always enable PIC in aarch64 assembly for apple platforms
This is similar to what we do for 32-bit ARM assembly as well.
Fixes linker errors such as `ld: Absolute addressing not allowed in
arm64 code but used in '_x264_cabac_encode_terminal_asm' referencing
'_x264_cabac_range_lps' for architecture arm64`.
> http://git.videolan.org/gitweb.cgi/x264.git/?a=commit;h=93340ca300e7ce66f49e41b7c2ef4a0492a7e57c
---
configure | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/configure b/configure
index 293d0087..2da0fafb 100755
--- a/configure
+++ b/configure
@@ -778,7 +778,7 @@ case $host_cpu in
stack_alignment=16
if [ "$SYS" = MACOSX ] ; then
AS="${AS-${SRCPATH}/tools/gas-preprocessor.pl -arch aarch64 -- ${CC}}"
- ASFLAGS="$ASFLAGS -DPREFIX"
+ ASFLAGS="$ASFLAGS -DPREFIX -DPIC"
else
AS="${AS-${CC}}"
fi
More information about the x264-devel
mailing list