This patch adds an additional target to build a shared library without pthreads
(should this be the default? or is the ulibc malloc threadsafe? or should we
build two separate packages?)

--- ptmalloc3/Makefile.orig	2007-11-08 09:10:46.000000000 +0000
+++ ptmalloc3/Makefile	2007-11-08 09:17:09.000000000 +0000
@@ -150,6 +150,13 @@
  INC_FLAGS='-Isysdeps/pthread -Isysdeps/generic -I.' M_FLAGS='$(M_FLAGS)' \
  LIB_MALLOC=libptmalloc3.so
 
+linux-shared-nothreads:
+	$(MAKE) SYS_FLAGS='-D_GNU_SOURCE=1 -fpic' \
+ WARN_FLAGS='-Wall -Wstrict-prototypes' \
+ OPT_FLAGS='$(OPT_FLAGS)' THR_FLAGS='' THR_LIBS='' \
+ INC_FLAGS='-Isysdeps/generic -I.' M_FLAGS='$(M_FLAGS)' \
+ LIB_MALLOC=libptmalloc3.so
+
 sproc:
 	$(MAKE) THR_FLAGS='' THR_LIBS='' OPT_FLAGS='$(OPT_FLAGS)' CC='$(CC)' \
 	INC_FLAGS='-Isysdeps/sproc -Isysdeps/generic -I.' \
