From c35e6bf288ab69b3e9ce083c667ee536bcbc051b Mon Sep 17 00:00:00 2001 From: bsekisser Date: Wed, 15 Jan 2025 17:11:34 -0500 Subject: [PATCH] missing atomic references... EXTRA_LIBS='-latomic' is not enough... qjsc needs to pass the same for producing output. same issue or possibly related to issue... https://github.com/bellard/quickjs/issues/321 compiling platform uname -a Linux raspberrypi 6.6.62+rpt-rpi-v8 #1 SMP PREEMPT Debian 1:6.6.62-1+rpt1 (2024-11-25) aarch64 GNU/Linux modified: qjsc.c --- qjsc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/qjsc.c b/qjsc.c index 46f52a6f9..f8588c652 100644 --- a/qjsc.c +++ b/qjsc.c @@ -451,6 +451,7 @@ static int output_executable(const char *out_filename, const char *cfilename, *arg++ = "-lm"; *arg++ = "-ldl"; *arg++ = "-lpthread"; + *arg++ = "-latomic"; *arg = NULL; if (verbose) {