1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-06-15 15:49:36 +02:00

Link with -latomic if using clang on Linux.

This commit is contained in:
Max Maisel 2018-10-04 17:38:47 +02:00 committed by James Crook
parent ac8273342f
commit 43402438f8

View File

@ -204,6 +204,14 @@ if test x$enable_universal_binary = xyes; then
esac
fi
dnl Check if $CXX is clang by evaluating the version string because
dnl $ax_cv_cxx_compiler_vendor seems not to work (it is either "gnu" or just empty).
dnl If $CXX is clang (string is found), grep returns 0 and the if is executed.
dnl Use /dev/null to suppress grep output to shell.
if ($CXX --version | grep 'clang version' > /dev/null); then
LDFLAGS="${LDFLAGS} -latomic"
fi
if test x$enable_sse = xyes; then
if test "${ax_cv_cxx_compiler_vendor}" = "gnu"; then