Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/emulators retroarch: Centralise definition of HAVE_POS...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/7556ac6fb8d3
branches:  trunk
changeset: 434925:7556ac6fb8d3
user:      nia <nia%pkgsrc.org@localhost>
date:      Sun Jun 28 13:30:29 2020 +0000

description:
retroarch: Centralise definition of HAVE_POSIX_MEMALIGN

diffstat:

 emulators/libretro-bsnes-mercury/Makefile.common |  5 +----
 emulators/libretro-flycast/Makefile              |  5 +----
 emulators/retroarch/core.mk                      |  5 ++++-
 3 files changed, 6 insertions(+), 9 deletions(-)

diffs (57 lines):

diff -r 1254f18885c3 -r 7556ac6fb8d3 emulators/libretro-bsnes-mercury/Makefile.common
--- a/emulators/libretro-bsnes-mercury/Makefile.common  Sun Jun 28 11:32:04 2020 +0000
+++ b/emulators/libretro-bsnes-mercury/Makefile.common  Sun Jun 28 13:30:29 2020 +0000
@@ -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 @@
 
 .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 -r 1254f18885c3 -r 7556ac6fb8d3 emulators/libretro-flycast/Makefile
--- a/emulators/libretro-flycast/Makefile       Sun Jun 28 11:32:04 2020 +0000
+++ b/emulators/libretro-flycast/Makefile       Sun Jun 28 13:30:29 2020 +0000
@@ -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 @@
 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 -r 1254f18885c3 -r 7556ac6fb8d3 emulators/retroarch/core.mk
--- a/emulators/retroarch/core.mk       Sun Jun 28 11:32:04 2020 +0000
+++ b/emulators/retroarch/core.mk       Sun Jun 28 13:30:29 2020 +0000
@@ -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+=       -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



Home | Main Index | Thread Index | Old Index