Skip to content

Commit 17f8471

Browse files
committed
mame2010: buildfixes
1 parent 8c69b9f commit 17f8471

2 files changed

Lines changed: 24 additions & 5 deletions

File tree

packages/lakka/libretro_cores/mame2010/package.mk

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,22 @@ PKG_DEPENDS_TARGET="toolchain"
77
PKG_LONGDESC="Late 2010 version of MAME (0.139) for libretro. Compatible with MAME 0.139 romsets."
88
PKG_TOOLCHAIN="manual"
99

10-
make_target() {
10+
pre_make_target() {
11+
PKG_MAKE_OPTS_TARGET="CC=${CC} LD=${CC}"
1112
if [ "${ARCH}" = "arm" ]; then
12-
make CC=${CC} LD=${CC} PLATCFLAGS="${CFLAGS}" PTR64=0 ARM_ENABLED=1 LCPU=arm
13+
PKG_MAKE_OPTS_TARGET+=" PTR64=0 ARM_ENABLED=1 LCPU=arm"
1314
elif [ "${ARCH}" = "i386" ]; then
14-
make CC=${CC} LD=${CC} PLATCFLAGS="${CFLAGS}" PTR64=0 ARM_ENABLED=0 LCPU=x86
15+
PKG_MAKE_OPTS_TARGET+=" PTR64=0 ARM_ENABLED=0 LCPU=x86"
1516
elif [ "${ARCH}" = "x86_64" ]; then
16-
make CC=${CC} LD=${CC} PLATCFLAGS="${CFLAGS}" PTR64=1 ARM_ENABLED=0 LCPU=x86_64
17+
PKG_MAKE_OPTS_TARGET+=" PTR64=1 ARM_ENABLED=0 LCPU=x86_64"
1718
elif [ "${ARCH}" = "aarch64" ]; then
18-
make CC=${CC} LD=${CC} PLATCFLAGS="${CFLAGS}" PTR64=1 ARM_ENABLED=1 LCPU=arm64
19+
PKG_MAKE_OPTS_TARGET+=" PTR64=1 ARM_ENABLED=1 LCPU=arm64"
1920
fi
21+
make ${PKG_MAKE_OPTS_TARGET} PLATCFLAGS="${CFLAGS}" maketree
22+
}
23+
24+
make_target() {
25+
make ${PKG_MAKE_OPTS_TARGET} PLATCFLAGS="${CFLAGS}"
2026
}
2127

2228
makeinstall_target() {
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
diff --git a/Makefile b/Makefile
2+
index 65ece36..6fd017d 100644
3+
--- a/Makefile
4+
+++ b/Makefile
5+
@@ -633,7 +633,7 @@ endif
6+
# utilities
7+
MD = -mkdir$(EXE_EXT)
8+
RM = @rm -f
9+
-OBJDUMP = @objdump
10+
+OBJDUMP ?= @objdump
11+
12+
#-------------------------------------------------
13+
# form the name of the executable

0 commit comments

Comments
 (0)