1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-18 00:10:04 +00:00

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) \
         ^
This commit is contained in:
Piotr Kubaj 2024-05-07 14:54:51 +02:00
parent 54eaa9043d
commit d110b34b93
2 changed files with 4 additions and 0 deletions

View File

@ -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}