Skip to contentSkip to conversation

package/sg3_utils: link with libatomic when needed

PATCH New Fabrice Fontaine 2 participants 2 messages Apr 26, 2020 – Apr 27, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/sg3_utils: link with libatomic when needed

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

---
 package/sg3_utils/sg3_utils.mk | 5 +++++
 1 file changed, 5 insertions(+)
package/sg3_utils/sg3_utils.mk +5 -0
index 4685169e39..11b3691ffc 100644
@@ -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 \
Signature · 1 line
2.25.1
#1 lore raw

PATCH 1/1 package/sg3_utils: link with libatomic when needed

Quoted 10 lines · On Sun, 26 Apr 2020 09:21:16 +0200 Fabrice Fontaine…

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

---
 package/sg3_utils/sg3_utils.mk | 5 +++++
 1 file changed, 5 insertions(+)

Applied to master, thanks.

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com