openwrt_archive/libs/libptmalloc3/patches/100-nothreads.patch
Florian Fainelli 321b9def9c Add libptmalloc3 from #2667
SVN-Revision: 13159
2008-11-09 17:53:03 +00:00

21 lines
833 B
Diff

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.' \