From 619b8749135ec5ca1894fb4e9f80434faf3ad47f Mon Sep 17 00:00:00 2001 From: Debian Multimedia Maintainers Date: Fri, 19 Jan 2018 11:36:28 +0000 Subject: [PATCH] properly_detect_x32 Gbp-Pq: Name properly_detect_x32.patch --- common/common.h | 2 +- configure | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/common/common.h b/common/common.h index 867b207..90a9f73 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 4f5fdb4..7ebf4df 100755 --- a/configure +++ b/configure @@ -684,6 +684,10 @@ esac LDFLAGS="$LDFLAGS $libm" +case `$CC -dumpmachine` in + *gnux32) host_cpu=x32 +esac + stack_alignment=4 case $host_cpu in i*86) @@ -740,6 +744,10 @@ case $host_cpu in ASFLAGS="$ASFLAGS -f elf64" fi ;; + x32) + ARCH="X32" + CFLAGS="$CFLAGS -fPIC" + ;; powerpc*) ARCH="PPC" if [ $asm = auto ] ; then -- 2.30.2