git: d110b34b93ae - main - emulators/mame: fix build on powerpc64*
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 10 May 2024 16:20:20 UTC
The branch main has been updated by pkubaj: URL: https://cgit.FreeBSD.org/ports/commit/?id=d110b34b93aefc6a810aafdc13c6451e636b3145 commit d110b34b93aefc6a810aafdc13c6451e636b3145 Author: Piotr Kubaj <pkubaj@FreeBSD.org> AuthorDate: 2024-05-07 12:54:51 +0000 Commit: Piotr Kubaj <pkubaj@FreeBSD.org> CommitDate: 2024-05-10 16:19:45 +0000 emulators/mame: fix build on powerpc64* Move ARM-specific patch to EXTRA_PATCHES to fix build: ../../../../../3rdparty/lzma/C/AesOpt.c:835:9: warning: AES HW_SW stub was used [-W#pragma-messages] ^ ../../../../../3rdparty/lzma/C/AesOpt.c:848:1: error: variable has incomplete type 'void' AES_COMPAT_STUB (AesCbc_Encode) ^ ../../../../../3rdparty/lzma/C/AesOpt.c:844:5: note: expanded from macro 'AES_COMPAT_STUB' AES_FUNC_START(name); \ ^ ../../../../../3rdparty/lzma/C/AesOpt.c:841:10: note: expanded from macro 'AES_FUNC_START' void MY_FAST_CALL name(UInt32 *p, Byte *data, size_t numBlocks) \ ^ --- emulators/mame/Makefile | 4 ++++ ...-3rdparty_lzma_C_AesOpt.c => extra-patch-3rdparty_lzma_C_AesOpt.c} | 0 2 files changed, 4 insertions(+) diff --git a/emulators/mame/Makefile b/emulators/mame/Makefile index 41e0b91df05e..33d455a1d380 100644 --- a/emulators/mame/Makefile +++ b/emulators/mame/Makefile @@ -190,6 +190,10 @@ _TOOLS_MANUALS= -name *.1 -depth 1 -type f -and -not -type d -and -not \ MAKE_ENV+= PTR64=1 .endif +.if ${ARCH} == aarch64 || ${ARCH} == armv7 +EXTRA_PATCHES+= ${PATCHDIR}/extra-patch-3rdparty_lzma_C_AesOpt.c +.endif + # Compiling with -pg (PROFILE) causes the linker to run out of memory on i386, # build with less profiling data: .if ${ARCH:Mi386} diff --git a/emulators/mame/files/patch-3rdparty_lzma_C_AesOpt.c b/emulators/mame/files/extra-patch-3rdparty_lzma_C_AesOpt.c similarity index 100% rename from emulators/mame/files/patch-3rdparty_lzma_C_AesOpt.c rename to emulators/mame/files/extra-patch-3rdparty_lzma_C_AesOpt.c