void-packages/srcpkgs/quickjs/patches/atomic.patch

13 lines
288 B
Diff

--- qjsc.c
+++ qjsc.c
@@ -452,6 +452,9 @@ static int output_executable(const char *out_filename, const char *cfilename,
*arg++ = "-lm";
*arg++ = "-ldl";
*arg++ = "-lpthread";
+#ifdef LINK_ATOMIC
+ *arg++ = "-latomic";
+#endif
*arg = NULL;
if (verbose) {