Add libatomic for 32-bit ARM

Fixes #3113
This commit is contained in:
Matthew Bauer 2019-10-01 21:07:07 -04:00
parent a56b51a0ba
commit 74b4737d8f

View file

@ -157,6 +157,11 @@ AX_BOOST_BASE([1.66], [CXXFLAGS="$BOOST_CPPFLAGS $CXXFLAGS"], [AC_MSG_ERROR([Nix
# ends up with LDFLAGS being empty, so we set it afterwards. # ends up with LDFLAGS being empty, so we set it afterwards.
LDFLAGS="$BOOST_LDFLAGS $LDFLAGS" LDFLAGS="$BOOST_LDFLAGS $LDFLAGS"
# Boost atomic needs GCC libatomic on 32-bit ARM
case "$host_cpu" in
armv5*|armv6*|armv7*) LIBS="-latomic $LIBS"
esac
# Look for OpenSSL, a required dependency. # Look for OpenSSL, a required dependency.
PKG_CHECK_MODULES([OPENSSL], [libcrypto], [CXXFLAGS="$OPENSSL_CFLAGS $CXXFLAGS"]) PKG_CHECK_MODULES([OPENSSL], [libcrypto], [CXXFLAGS="$OPENSSL_CFLAGS $CXXFLAGS"])