From: Fabrice Bellard Date: Tue, 2 Jan 2024 15:10:24 +0000 (+0100) Subject: added note about atomic operations X-Git-Url: http://git.kaiwu.me/postgresql/log/contrib/postgres_fdw/static/gitweb.js?a=commitdiff_plain;h=a8064b74fb950f7f7f06de0650f529ab3c2e20b3;p=quickjs.git added note about atomic operations --- 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