Add libptmalloc3 from #2667
[openwrt/svn-archive/archive.git] / libs / libptmalloc3 / patches / 100-nothreads.patch
1 This patch adds an additional target to build a shared library without pthreads
2 (should this be the default? or is the ulibc malloc threadsafe? or should we
3 build two separate packages?)
4
5 --- ptmalloc3/Makefile.orig 2007-11-08 09:10:46.000000000 +0000
6 +++ ptmalloc3/Makefile 2007-11-08 09:17:09.000000000 +0000
7 @@ -150,6 +150,13 @@
8 INC_FLAGS='-Isysdeps/pthread -Isysdeps/generic -I.' M_FLAGS='$(M_FLAGS)' \
9 LIB_MALLOC=libptmalloc3.so
10
11 +linux-shared-nothreads:
12 + $(MAKE) SYS_FLAGS='-D_GNU_SOURCE=1 -fpic' \
13 + WARN_FLAGS='-Wall -Wstrict-prototypes' \
14 + OPT_FLAGS='$(OPT_FLAGS)' THR_FLAGS='' THR_LIBS='' \
15 + INC_FLAGS='-Isysdeps/generic -I.' M_FLAGS='$(M_FLAGS)' \
16 + LIB_MALLOC=libptmalloc3.so
17 +
18 sproc:
19 $(MAKE) THR_FLAGS='' THR_LIBS='' OPT_FLAGS='$(OPT_FLAGS)' CC='$(CC)' \
20 INC_FLAGS='-Isysdeps/sproc -Isysdeps/generic -I.' \