[x264-devel] [PATCH 1/2] configure: Always build aarch64 assembly for apple platforms with PIC
Martin Storsjö
martin at martin.st
Thu Mar 23 14:05:37 CET 2017
This is similar to what we do for arm assembly as well.
This fixes linker errors like this:
ld: Absolute addressing not allowed in arm64 code but used in '_x264_cabac_encode_terminal_asm' referencing '_x264_cabac_range_lps' for architecture arm64
---
configure | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/configure b/configure
index 293d008..2da0faf 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
--
2.7.4
More information about the x264-devel
mailing list