Dummy implementation of the pthread library.
authorJohn Criswell <criswell@uiuc.edu>
Wed, 10 Dec 2003 14:46:36 +0000 (14:46 +0000)
committerJohn Criswell <criswell@uiuc.edu>
Wed, 10 Dec 2003 14:46:36 +0000 (14:46 +0000)
This is needed since libstdc++ uses pthread_once().

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10360 91177308-0d34-0410-b5e6-96231b3b80d8

runtime/GCCLibraries/libpthread/Makefile [new file with mode: 0644]
runtime/GCCLibraries/libpthread/pthread.c [new file with mode: 0644]

diff --git a/runtime/GCCLibraries/libpthread/Makefile b/runtime/GCCLibraries/libpthread/Makefile
new file mode 100644 (file)
index 0000000..b3de428
--- /dev/null
@@ -0,0 +1,14 @@
+##===- runtime/GCCLibraries/libpthread/Makefile ------------*- Makefile -*-===##
+# 
+#                     The LLVM Compiler Infrastructure
+#
+# This file was developed by the LLVM research group and is distributed under
+# the University of Illinois Open Source License. See LICENSE.TXT for details.
+# 
+##===----------------------------------------------------------------------===##
+LEVEL = ../../..
+BYTECODE_LIBRARY=1
+DONT_BUILD_RELINKED=1
+LIBRARYNAME=pthread
+
+include $(LEVEL)/Makefile.common
diff --git a/runtime/GCCLibraries/libpthread/pthread.c b/runtime/GCCLibraries/libpthread/pthread.c
new file mode 100644 (file)
index 0000000..cb5818c
--- /dev/null
@@ -0,0 +1,8 @@
+#include <pthread.h>
+
+int
+pthread_once (pthread_once_t * control, void (*func) (void))
+{
+  return 0;
+}
+