package/ogre: link with libatomic when needed
authorFabrice Fontaine <fontaine.fabrice@gmail.com>
Mon, 10 Feb 2020 17:41:27 +0000 (18:41 +0100)
committerPeter Korsgaard <peter@korsgaard.com>
Tue, 11 Feb 2020 22:42:27 +0000 (23:42 +0100)
commitbc88757481534b129b34b1890ef1569a71308229
tree3cdcdf7ef86b851229070c3139ab1dc43c1d8c71
parent274d586060ec240ad9a1424a21101765a5f8cff3
package/ogre: link with libatomic when needed

On some architectures, atomic binutils are provided by the libatomic
library from gcc. Linking with libatomic is therefore necessary,
otherwise the build fails with:

/home/test/autobuild/run/instance-1/output-1/host/lib/gcc/xtensa-buildroot-linux-uclibc/8.3.0/../../../../xtensa-buildroot-linux-uclibc/bin/ld: ../../lib/libOgreMain.so.1.12.0: undefined reference to `__atomic_fetch_add_8'

This is often for example the case on sparc v8 32 bits.

Fixes:
 - http://autobuild.buildroot.org/results/3a09e2d1d26b19243244eb7f9235c85488a788d2

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/ogre/ogre.mk