Sun Oct 22 00:55:55 2023 UTC ()
openal-soft: fix builds for aarch64 on NetBSD 9.x

For aarch64, older NetBSD releases will end up pulling in GCC 10
because of the C++20 requirement. We apply -mno-outline-atomics as one
way of getting around linking issues that otherwise occur. (This was
breaking 492 dependent builds.)


(gutteridge)
diff -r0 -r1.1 pkgsrc/audio/openal-soft/hacks.mk

File Added: pkgsrc/audio/openal-soft/hacks.mk
# $NetBSD: hacks.mk,v 1.1 2023/10/22 00:55:55 gutteridge Exp $

.if !defined(OPENAL_SOFT_HACKS_MK)
OPENAL_SOFT_HACKS_MK=	defined

# For aarch64, older NetBSD releases will end up pulling in GCC 10 to build
# this, because of the C++20 requirement. We apply -mno-outline-atomics as
# one way of getting around linking issues that otherwise occur.
.include "../../mk/bsd.prefs.mk"
.if ${MACHINE_PLATFORM:MNetBSD-*-aarch64*} && ${OPSYS_VERSION} < 099982
CXXFLAGS.NetBSD+=	-mno-outline-atomics
PKG_HACKS+=		gcc-no-outline-atomics
.endif

.endif # OPENAL_SOFT_HACKS_MK