summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOneric <oneric@oneric.stub>2020-11-21 21:47:54 +0100
committerOneric <oneric@oneric.stub>2021-02-22 15:22:29 +0100
commit3855299b0721acfeb5391a140cd6df65ce2b73d2 (patch)
tree223306d995a0ff73352a777d27da26e98aee1dce
parentb5719b821a88705aa27b2bba18e6aa7df2aaa483 (diff)
downloadlibass-3855299b0721acfeb5391a140cd6df65ce2b73d2.tar.bz2
libass-3855299b0721acfeb5391a140cd6df65ce2b73d2.tar.xz
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
-rw-r--r--configure.ac10
1 files changed, 9 insertions, 1 deletions
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], [