package/guile: link with libatomic if needed
authorFabrice Fontaine <fontaine.fabrice@gmail.com>
Mon, 8 Feb 2021 06:46:26 +0000 (07:46 +0100)
committerPeter Korsgaard <peter@korsgaard.com>
Thu, 11 Feb 2021 22:17:24 +0000 (23:17 +0100)
Fix build of guile 3.0.4 with Bootlin SPARC uclibc toolchain added with
commit 1348c569d0cb7f67eca30f170b782aa8b51cc259

Fixes:
 - http://autobuild.buildroot.org/results/a72d8e14854f9c6c9632e856019a3eb8ec4818b6

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

index 0e7328f1995f28e6baed34c50fa8aadab9b2014d..44f4d1c85e926551f44970a0288be01036218edd 100644 (file)
@@ -29,6 +29,10 @@ GUILE_CFLAGS = \
        -DHAVE_GC_GET_FREE_SPACE_DIVISOR \
        -DHAVE_GC_SET_FINALIZE_ON_DEMAND
 
+ifeq ($(BR2_TOOLCHAIN_HAS_LIBATOMIC),y)
+GUILE_CONF_ENV += LIBS=-latomic
+endif
+
 ifeq ($(BR2_STATIC_LIBS),y)
 GUILE_CFLAGS += -DGC_NO_DLOPEN
 endif