tor: link with libatomic when needed
authorFabrice Fontaine <fontaine.fabrice@gmail.com>
Thu, 14 Jun 2018 18:23:19 +0000 (20:23 +0200)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Sun, 17 Jun 2018 20:51:13 +0000 (22:51 +0200)
commitb1da7a8aed6a12eeb9ad7f3870a79be859e137f0
tree8619c02798534da14dd7cb7cceb695d266d1a477
parent4a03a66f405fa5142f3f1fe5f91f0d4d7c097771
tor: link with libatomic when needed

The following error occurs on architectures required to use gcc
libatomic for atomic intrinsics:

sparc-buildroot-linux-uclibc/sysroot/lib/libatomic.so.1: error adding symbols: DSO missing from command line

This is for example the case on sparcv8 32 bit.

Fixes:

 http://autobuild.buildroot.net/results/0f7107d0b703223f567c6749722bc82c81a04d54

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
[Thomas: use LIBS instead of LDFLAGS.]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/tor/tor.mk