File: fix_armel_build

package info (click to toggle)
quickjs 2025.04.26-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,312 kB
  • sloc: ansic: 65,819; javascript: 5,393; makefile: 388; sh: 110
file content (26 lines) | stat: -rw-r--r-- 751 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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