Tell libgcc_r how to initialize a mutex before it uses it. This
fixes the immediate segmentation violations from some multithreaded programs built on very up-to-date systems.
This commit is contained in:
parent
7640314efa
commit
9a281c0b96
@ -2,5 +2,6 @@
|
||||
|
||||
LIB= gcc_r
|
||||
CFLAGS+=-D_PTHREADS
|
||||
CFLAGS+=-D'__GTHREAD_MUTEX_INIT_FUNCTION(m)=pthread_mutex_init(m, NULL)'
|
||||
|
||||
.include "../libgcc/Makefile"
|
||||
|
Loading…
Reference in New Issue
Block a user