summaryrefslogtreecommitdiff
path: root/include/makeinclude/platform_linux_lxpthreads.GNU
diff options
context:
space:
mode:
authorschmidt <douglascraigschmidt@users.noreply.github.com>1996-12-22 22:06:04 +0000
committerschmidt <douglascraigschmidt@users.noreply.github.com>1996-12-22 22:06:04 +0000
commitf1aecb4edc3d6054687f4173112ef816cd961b83 (patch)
tree147fc294556751cc24df552768b29a173a22c924 /include/makeinclude/platform_linux_lxpthreads.GNU
parentdcc2719b5ef47d69ff58c830c25a7d9e1abcc299 (diff)
downloadATCD-f1aecb4edc3d6054687f4173112ef816cd961b83.tar.gz
foo
Diffstat (limited to 'include/makeinclude/platform_linux_lxpthreads.GNU')
-rw-r--r--include/makeinclude/platform_linux_lxpthreads.GNU25
1 files changed, 25 insertions, 0 deletions
diff --git a/include/makeinclude/platform_linux_lxpthreads.GNU b/include/makeinclude/platform_linux_lxpthreads.GNU
new file mode 100644
index 00000000000..67e517633ce
--- /dev/null
+++ b/include/makeinclude/platform_linux_lxpthreads.GNU
@@ -0,0 +1,25 @@
+# For pthreads support on Linux, you need
+# -D_MIT_POSIX_THREADS
+# -D_POSIX_THREADS
+# -D_POSIX_THREAD_SAFE_FUNCTIONS
+# in the CXX command line. Also, add -lpthreads to the LIBS.
+# libpthreads.so comes with the sources of Linux libc-5.3.*, you need
+# to compile it yourself (no binaries included) --
+# Jan Rychter <jwr@icm.edu.pl>
+
+CC = gcc -w
+CXX = gcc -w -I. -fno-strict-prototypes -D__ACE_INLINE__ -D_MIT_POSIX_THREADS -D_POSIX_THREADS -D_POSIX_THREAD_SAFE_FUNCTIONS
+DLD = $(CXX)
+LD = $(CXX)
+LIBS += -lpthread -lstdc++
+PIC = -fPIC
+AR = ar
+ARFLAGS = ruv
+RANLIB = ranlib
+
+SOFLAGS = $(CPPFLAGS) -shared
+SOBUILD = $(COMPILE.cc) $(PIC) -o $(VSHDIR)$*.so $<
+PRELIB = (echo "int main() { return 0; }" > gcctemp.c && \
+ $(COMPILE.cc) -o gcctemp.o gcctemp.c && \
+ $(LINK.cc) -o gcctemp gcctemp.o $^ $(LDFLAGS) $(LIBS); \
+ status=$$?; exit $$status)