diff --git a/srcpkgs/mame/template b/srcpkgs/mame/template index f636ba2db6..bc498d8286 100644 --- a/srcpkgs/mame/template +++ b/srcpkgs/mame/template @@ -52,6 +52,10 @@ if [ "$XBPS_TARGET_WORDSIZE" = 32 ]; then LDFLAGS+=" -Wl,--no-keep-memory" else _options+=" PTR64=1" + if [ "${XBPS_TARGET_MACHINE%-musl}" = "aarch64" ]; then + # Help to reduce impact on our aarch64 builders + LDFLAGS+=" -Wl,--no-keep-memory" + fi fi if [ "$build_option_qt" ]; then _options+=" USE_QTDEBUG=1"