package/sg3_utils: link with libatomic when needed

sg3_utils uses __atomic_fetch_add_4 since version 1.45 and
e9445f4efc

Fixes:
 - http://autobuild.buildroot.org/results/7773ead32375ca9073f45db83dac299aa2edd619

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
Fabrice Fontaine 2020-04-26 09:21:16 +02:00 committed by Thomas Petazzoni
parent 2d239aa136
commit aa9cf99d60

View File

@ -20,6 +20,11 @@ SG3_UTILS_AUTORECONF = YES
# install the libsgutils2 library
SG3_UTILS_INSTALL_STAGING = YES
# Uses __atomic_fetch_add_4
ifeq ($(BR2_TOOLCHAIN_HAS_LIBATOMIC),y)
SG3_UTILS_CONF_ENV += LIBS="-latomic"
endif
ifeq ($(BR2_PACKAGE_SG3_UTILS_PROGS),)
define SG3_UTILS_REMOVE_PROGS
for prog in \