Репозитории ALT
S: | 4.13.1-alt1 |
5.1: | 3.10.2-alt3.1 |
4.1: | 3.10.2-alt3 |
4.0: | 3.09.3-alt0.1 |
3.0: | 3.08.1-alt1 |
Группа :: Разработка/ML
Пакет: ocaml
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Патч: ocaml-3.04+7-threadhack.patch
Скачать
Скачать
--- ocaml-3.04+7/otherlibs/systhreads/posix.c.threadhack Fri Dec 7 22:33:00 2001
+++ ocaml-3.04+7/otherlibs/systhreads/posix.c Sat Apr 13 22:08:22 2002
@@ -91,6 +91,10 @@
typedef struct caml_thread_struct * caml_thread_t;
+#ifndef NATIVE_CODE
+asm(".weak external_raise");
+#endif
+
/* The descriptor for the currently executing thread */
static caml_thread_t curr_thread = NULL;
--- ocaml-3.04+7/otherlibs/systhreads/Makefile.threadhack Sat Apr 13 22:20:06 2002
+++ ocaml-3.04+7/otherlibs/systhreads/Makefile Sat Apr 13 22:20:10 2002
@@ -32,7 +32,7 @@
allopt: libthreadsnat.a threads.cmxa
libthreads.a: $(BYTECODE_C_OBJS)
- $(MKLIB) -o threads $(BYTECODE_C_OBJS)
+ $(MKLIB) -o threads $(BYTECODE_C_OBJS) -lpthread
posix_b.o: posix.c
$(BYTECC) -O -I../../byterun $(BYTECCCOMPOPTS) $(SHAREDCCCOMPOPTS) \