From 3855299b0721acfeb5391a140cd6df65ce2b73d2 Mon Sep 17 00:00:00 2001 From: Oneric Date: Sat, 21 Nov 2020 21:47:54 +0100 Subject: configure: correct NASM-configuration on 32bit BSD This patch was adapted from FreeBSD: https://svnweb.freebsd.org/ports/head/multimedia/libass/files/patch-configure.ac?view=markup and was also applied in DragonFlyBSD (eventhough DragonFlyBSD dropped 32bit support in 2014) closes https://github.com/libass/libass/issues/451 --- configure.ac | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 82ce401..3092567 100644 --- a/configure.ac +++ b/configure.ac @@ -223,9 +223,17 @@ AS_IF([test "x$enable_asm" != xno], [ [*darwin*], [ ASFLAGS="$ASFLAGS -f macho$BITTYPE -DPREFIX -DHAVE_ALIGNED_STACK=1" ], - [*linux*|*dragonfly*|*bsd*|*solaris*|*haiku*], [ + [*linux*|*solaris*|*haiku*], [ ASFLAGS="$ASFLAGS -f elf$BITTYPE -DHAVE_ALIGNED_STACK=1" ], + [*dragonfly*|*bsd*], [ + ASFLAGS="$ASFLAGS -f elf$BITTYPE" + AS_IF([test "x$BITS" = x64], [ + ASFLAGS="$ASFLAGS -DHAVE_ALIGNED_STACK=1" + ], [ + ASFLAGS="$ASFLAGS -DHAVE_ALIGNED_STACK=0" + ]) + ], [*cygwin*|*mingw*], [ ASFLAGS="$ASFLAGS -f win$BITTYPE" AS_IF([test "x$BITS" = x64], [ -- cgit v1.2.3