[Buildroot] [git commit] package/sg3_utils: link with libatomic when needed
Thomas Petazzoni
thomas.petazzoni at bootlin.com
Mon Apr 27 20:46:19 UTC 2020
commit: https://git.buildroot.net/buildroot/commit/?id=aa9cf99d6074d174671537396a90d16f8eb1ba1f
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master
sg3_utils uses __atomic_fetch_add_4 since version 1.45 and
https://github.com/hreinecke/sg3_utils/commit/e9445f4efc012d37809342ba21f16360a0208f06
Fixes:
- http://autobuild.buildroot.org/results/7773ead32375ca9073f45db83dac299aa2edd619
Signed-off-by: Fabrice Fontaine <fontaine.fabrice at gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni at bootlin.com>
---
package/sg3_utils/sg3_utils.mk | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/package/sg3_utils/sg3_utils.mk b/package/sg3_utils/sg3_utils.mk
index 4685169e39..11b3691ffc 100644
--- a/package/sg3_utils/sg3_utils.mk
+++ b/package/sg3_utils/sg3_utils.mk
@@ -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 \
More information about the buildroot
mailing list