summaryrefslogtreecommitdiff
path: root/emulators
diff options
context:
space:
mode:
authornia <nia@pkgsrc.org>2020-06-28 13:30:29 +0000
committernia <nia@pkgsrc.org>2020-06-28 13:30:29 +0000
commitb499d658338101e376642b847148a309316ff9db (patch)
tree2a550f8502a3a9cb8374b29522cf72fa48c71648 /emulators
parent54f3595580ee5ef5ce76fe8c9319d672399d6c5f (diff)
downloadpkgsrc-b499d658338101e376642b847148a309316ff9db.tar.gz
retroarch: Centralise definition of HAVE_POSIX_MEMALIGN
Diffstat (limited to 'emulators')
-rw-r--r--emulators/libretro-bsnes-mercury/Makefile.common5
-rw-r--r--emulators/libretro-flycast/Makefile5
-rw-r--r--emulators/retroarch/core.mk5
3 files changed, 6 insertions, 9 deletions
diff --git a/emulators/libretro-bsnes-mercury/Makefile.common b/emulators/libretro-bsnes-mercury/Makefile.common
index 63203711dc4..92e9f93a36c 100644
--- a/emulators/libretro-bsnes-mercury/Makefile.common
+++ b/emulators/libretro-bsnes-mercury/Makefile.common
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.common,v 1.7 2020/06/13 10:01:06 nia Exp $
+# $NetBSD: Makefile.common,v 1.8 2020/06/28 13:30:29 nia Exp $
#
# used by emulators/libretro-bsnes-mercury/Makefile
# used by emulators/libretro-bsnes-mercury-accuracy/Makefile
@@ -26,9 +26,6 @@ PATCHDIR= ${.CURDIR}/../../emulators/libretro-bsnes-mercury/patches
.include "../../mk/bsd.prefs.mk"
-# libco/aarch64.c and libco/armeabi.c try to use memalign() otherwise,
-CFLAGS.NetBSD+= -DHAVE_POSIX_MEMALIGN=1
-
LIBRETRO_CORE= bsnes_mercury_${BSNES_PROFILE}
.include "../../emulators/retroarch/core.mk"
diff --git a/emulators/libretro-flycast/Makefile b/emulators/libretro-flycast/Makefile
index d3057f3728f..2677b1e2f0b 100644
--- a/emulators/libretro-flycast/Makefile
+++ b/emulators/libretro-flycast/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.3 2020/05/31 17:38:15 nia Exp $
+# $NetBSD: Makefile,v 1.4 2020/06/28 13:30:29 nia Exp $
DISTNAME= libretro-flycast-20200529
CATEGORIES= emulators
@@ -27,9 +27,6 @@ CFLAGS+= -DLOW_END
CXXFLAGS+= -DLOW_END
.endif
-CFLAGS+= -DHAVE_POSIX_MEMALIGN=1
-CXXFLAGS+= -DHAVE_POSIX_MEMALIGN=1
-
.if ${MACHINE_ARCH} == "aarch64"
MAKE_FLAGS+= WITH_DYNAREC=arm64
MAKE_FLAGS+= HAVE_GENERIC_JIT=0
diff --git a/emulators/retroarch/core.mk b/emulators/retroarch/core.mk
index 8429279ba44..f7a317cf515 100644
--- a/emulators/retroarch/core.mk
+++ b/emulators/retroarch/core.mk
@@ -1,4 +1,4 @@
-# $NetBSD: core.mk,v 1.4 2020/06/25 15:22:50 nia Exp $
+# $NetBSD: core.mk,v 1.5 2020/06/28 13:30:29 nia Exp $
MASTER_SITES?= ${MASTER_SITE_GITHUB:=libretro/}
@@ -32,6 +32,9 @@ CFLAGS+= -DBYTE_ORDER=BIG_ENDIAN
CFLAGS+= -DWORDS_BIGENDIAN -DMSB_FIRST
.endif
+# Avoid using memalign() in libco on NetBSD.
+CFLAGS.NetBSD+= -DHAVE_POSIX_MEMALIGN=1
+
BUILDLINK_TRANSFORM.SunOS+= rm:-Wl,--no-undefined
INSTALLATION_DIRS+= lib/libretro