From a8064b74fb950f7f7f06de0650f529ab3c2e20b3 Mon Sep 17 00:00:00 2001 From: Fabrice Bellard Date: Tue, 2 Jan 2024 16:10:24 +0100 Subject: [PATCH] added note about atomic operations --- doc/quickjs.texi | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/doc/quickjs.texi b/doc/quickjs.texi index 996836b..055825a 100644 --- a/doc/quickjs.texi +++ b/doc/quickjs.texi @@ -69,6 +69,11 @@ options then run @code{make}. You can type @code{make install} as root if you wish to install the binaries and support files to @code{/usr/local} (this is not necessary to use QuickJS). +Note: On some OSes atomic operations are not available or need a +specific library. If you get related errors, you should either add +@code{-latomics} in the Makefile @code{LIBS} variable or disable +@code{CONFIG_ATOMICS} in @file{quickjs.c}. + @section Quick start @code{qjs} is the command line interpreter (Read-Eval-Print Loop). You can pass