]> granicus.if.org Git - libx264/commitdiff
configure: Always enable PIC in aarch64 assembly for apple platforms
authorMartin Storsjö <martin@martin.st>
Thu, 23 Mar 2017 13:05:37 +0000 (15:05 +0200)
committerHenrik Gramner <henrik@gramner.com>
Thu, 23 Mar 2017 21:52:09 +0000 (22:52 +0100)
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`.

configure

index 293d00873cb76642a4032805d6615de62466e1bb..2da0fafb2b48398425fc1bc99714939f52cd4be7 100755 (executable)
--- 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