When building Qt WebEngine with a Qt build with -platform linux-clang
Qt5WebEngineCore.so fails to link with error:
/usr/bin/../lib/gcc/x86_64-linux-gnu/5.3.1/../../../../include/c++/5.3.1/bits/atomic_base.h:362: error: undefined reference to '__atomic_is_lock_free'
/usr/bin/../lib/gcc/x86_64-linux-gnu/5.3.1/../../../../include/c++/5.3.1/bits/atomic_base.h:354: error: undefined reference to '__atomic_is_lock_free'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Makefile.core_module:161: recipe for target '/home/nezticle/Code/build/qt5-5.8-nogl/qtbase/lib/libQt5WebEngineCore.so.5.8.0' failed
This seems to be because of a missing -latomic , which appears to be assumed when building with clang. However when building with clang without libc++, you still need to use -latomic.