summaryrefslogtreecommitdiff
path: root/emulators/libretro-bsnes-mercury
diff options
context:
space:
mode:
authornia <nia@pkgsrc.org>2020-06-13 10:01:06 +0000
committernia <nia@pkgsrc.org>2020-06-13 10:01:06 +0000
commit38925040819218f89415e870594bd070a4200b10 (patch)
treead7c46e2ac6fa26510a13afa2f13adffb6455103 /emulators/libretro-bsnes-mercury
parent4141f58a7d748387f3990d9b60e9d5c81d9d057e (diff)
downloadpkgsrc-38925040819218f89415e870594bd070a4200b10.tar.gz
libretro-bsnes-mercury: Uncondition HAVE_POSIX_MEMALIGN so it works on 32-bit arm
Diffstat (limited to 'emulators/libretro-bsnes-mercury')
-rw-r--r--emulators/libretro-bsnes-mercury/Makefile.common8
1 files changed, 3 insertions, 5 deletions
diff --git a/emulators/libretro-bsnes-mercury/Makefile.common b/emulators/libretro-bsnes-mercury/Makefile.common
index ae5d894c92d..63203711dc4 100644
--- a/emulators/libretro-bsnes-mercury/Makefile.common
+++ b/emulators/libretro-bsnes-mercury/Makefile.common
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.common,v 1.6 2020/05/31 11:45:45 nia Exp $
+# $NetBSD: Makefile.common,v 1.7 2020/06/13 10:01:06 nia Exp $
#
# used by emulators/libretro-bsnes-mercury/Makefile
# used by emulators/libretro-bsnes-mercury-accuracy/Makefile
@@ -26,10 +26,8 @@ PATCHDIR= ${.CURDIR}/../../emulators/libretro-bsnes-mercury/patches
.include "../../mk/bsd.prefs.mk"
-# Needed in libco/aarch64.c
-.if ${MACHINE_ARCH} == "aarch64" || ${MACHINE_ARCH} == "aarch64eb"
-CFLAGS+= -DHAVE_POSIX_MEMALIGN=1
-.endif
+# libco/aarch64.c and libco/armeabi.c try to use memalign() otherwise,
+CFLAGS.NetBSD+= -DHAVE_POSIX_MEMALIGN=1
LIBRETRO_CORE= bsnes_mercury_${BSNES_PROFILE}