From: Debian Multimedia Maintainers Date: Wed, 28 Jun 2017 06:31:44 +0000 (+0100) Subject: properly_detect_x32 X-Git-Tag: archive/raspbian/2%0.148.2795+gitaaa9aa8-1+rpi1^2~1 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=b7c18f2fc8c96a74b70b3aad0025913ead21aa66;p=x264.git properly_detect_x32 Gbp-Pq: Name properly_detect_x32.patch --- diff --git a/common/common.h b/common/common.h index 8cc1dc1..86831e0 100644 --- a/common/common.h +++ b/common/common.h @@ -1012,7 +1012,7 @@ static int ALWAYS_INLINE x264_predictor_clip( int16_t (*dst)[2], int16_t (*mvc)[ return cnt; } -#if ARCH_X86 || ARCH_X86_64 +#if ARCH_X86 || ARCH_X86_64 || ARCH_X32 #include "x86/util.h" #endif diff --git a/configure b/configure index f826a7d..1a29a7f 100755 --- a/configure +++ b/configure @@ -674,6 +674,10 @@ esac LDFLAGS="$LDFLAGS $libm" +case `$CC -dumpmachine` in + *gnux32) host_cpu=x32 +esac + stack_alignment=4 case $host_cpu in i*86) @@ -730,6 +734,10 @@ case $host_cpu in ASFLAGS="$ASFLAGS -f elf64" fi ;; + x32) + ARCH="X32" + CFLAGS="$CFLAGS -fPIC" + ;; powerpc*) ARCH="PPC" if [ $asm = auto ] ; then