With -O0, I can see that the only routine I have that calls __wait() is 
_flockfile(), which is only called by ___getopt_msg(), which is only called 
by _getopt() ... and this last routine I most certainly do use. I do not 
have PTHREADS=1.

And, indeed, the  getopt C code in 
1.37.9/system/lib/libc/musl/src/misc/getopt.c calls getopt_msg() which 
calls flockfile() which calls __wait().

The problem is that __wait() is defined in 
1.37.9/system/lib/libc/musl/src/thread/__wait.c, i.e. only for threaded 
applications. I guess I need to create a dummy __wait() routine while you 
fix it properly?








-- 
You received this message because you are subscribed to the Google Groups 
"emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to emscripten-discuss+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to