Force aarch64 detection to fix build with clang 19

Upstream's Makefile uses uname -m which returns arm64 on OpenBSD, and
inadvertently matches the build options added for armv7, now rejected by
clang 19:

cc: error: unsupported option '-mno-thumb' for target 'aarch64-unknown-openbsd7.6'
cc: error: unsupported option '-mfpu=' for target 'aarch64-unknown-openbsd7.6'
cc: error: unsupported option '-mfloat-abi=' for target 'aarch64-unknown-openbsd7.6'
This commit is contained in:
jca
2025-02-11 19:27:53 +00:00
parent 0f659a7bbb
commit 7b10148baa
+4 -1
View File
@@ -1,6 +1,6 @@
COMMENT = n64 emulator core
SHARED_LIBS = mupen64plus 2.4 # 2.5.9
REVISION = 1
REVISION = 2
# GPLv2+
PERMIT_PACKAGE = Yes
@@ -18,5 +18,8 @@ MUPEN64PLUS_MOD = core
MAKE_FLAGS += TARGET=libmupen64plus.so.${LIBmupen64plus_VERSION} \
SONAME=libmupen64plus.so \
NO_ASM=1
.if ${MACHINE_ARCH} == aarch64
MAKE_FLAGS += HOST_CPU="aarch64"
.endif
.include <bsd.port.mk>