Avoid POSIX mutexes on armv6* and aarch64.

db6 switched from the stpb-based mutexes that db5 used to ldrex/strex.

PR:		213167 (related)
This commit is contained in:
Matthias Andree 2016-10-04 09:32:48 +00:00
parent cffbd83b2b
commit 64893b90e2
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=423245

View file

@ -63,9 +63,9 @@ DOCS_INSTALL_TARGET= install_docs
.include <bsd.port.options.mk>
.if ${ARCH} == "aarch64" || ${ARCH:Marmv6*}
# db6 uses a deprecated instruction for mutexes on ARM, fbsd bug#197227
# and also bug #205001
.if ${ARCH:Marm*} && empty(ARCH:Marmv6*)
# db6 uses LDREX/STREX instructions for mutexes on ARM,
# which are unavailable before ARMv6.
CONFIGURE_ARGS+= --enable-posixmutexes
.endif