I am using -pthread flag : (makefile)
COMMON_LNFLAGS += -Lapps/libs -Ldemos/libs -L/usr/X11R6/lib64 -L/usr/X11R6/lib -pthread
and here is the compilation output :
emcc -o ../../../../html/debug/snakebird.js ../../../../objs_html/snakebird.js/debug/apps/snakebird/Driver.o -lenvironments -lmapalgorithms -lalgorithms -lgraphalgorithms -lgraph -lutils -lguihtml -lgui -lSTUB -L../../../../html/debug -Lapps/libs -Ldemos/libs -L/usr/X11R6/lib64 -L/usr/X11R6/lib -pthread -g -s EXPORTED_FUNCTIONS="['_InitHOG', '_InitHOGArg', '_DoFrame', '_MouseEvent', '_HitKey', '_SetCanvasSize']" -s EXTRA_EXPORTED_RUNTIME_METHODS=["cwrap"]
Live child 0x5633c6243c40 (../../../../html/debug/snakebird.js) PID 22723
wasm-ld: error: --shared-memory is disallowed by ../../../../objs_html/snakebird.js/debug/apps/snakebird/Driver.o because it was not compiled with 'atomics' or 'bulk-memory' features.
Is this not correct?