summaryrefslogtreecommitdiffstats
path: root/gnu/lib/libgcc_r
diff options
context:
space:
mode:
authorjdp <jdp@FreeBSD.org>2000-11-01 01:18:27 +0000
committerjdp <jdp@FreeBSD.org>2000-11-01 01:18:27 +0000
commit61875350d305ddc93d316dcb34c26f87b6a2f807 (patch)
treec2a42d676a88067c2db5eaed01e0c32b7346f9fe /gnu/lib/libgcc_r
parent562386a823affe2afc1241361c6d822298dc24e5 (diff)
downloadFreeBSD-src-61875350d305ddc93d316dcb34c26f87b6a2f807.zip
FreeBSD-src-61875350d305ddc93d316dcb34c26f87b6a2f807.tar.gz
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.
Diffstat (limited to 'gnu/lib/libgcc_r')
-rw-r--r--gnu/lib/libgcc_r/Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/gnu/lib/libgcc_r/Makefile b/gnu/lib/libgcc_r/Makefile
index 7f73302..501549c 100644
--- a/gnu/lib/libgcc_r/Makefile
+++ b/gnu/lib/libgcc_r/Makefile
@@ -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"
OpenPOWER on IntegriCloud