Description: fix armel build
 The armel build fails if `-latomic` is not added to the link
 command. It is harmless to add it for all architectures, as the flag
 `as-needed` will remove it if it is not needed.
Author: Sebastian Humenda <shumenda@gmx.de>
Forwarded: not-needed
Last-Update: 2025-05-03

---
 Makefile |    2 ++
 1 file changed, 2 insertions(+)

Index: quickjs/Makefile
===================================================================
--- quickjs.orig/Makefile
+++ quickjs/Makefile
@@ -232,7 +232,9 @@ QJS_LIB_OBJS=$(OBJDIR)/quickjs.o $(OBJDI
 QJS_OBJS=$(OBJDIR)/qjs.o $(OBJDIR)/repl.o $(QJS_LIB_OBJS)
 
 HOST_LIBS=-lm -ldl -lpthread
+HOST_LIBS += -latomic
 LIBS=-lm
+LIBS += -latomic
 ifndef CONFIG_WIN32
 LIBS+=-ldl -lpthread
 endif
