Mercurial > jemalloc
changeset 1:daf7ce634fb2 default tip
- add pointer size specifier for 64bit systems. (default)
- link against libpthread
author | Yoshiki Yazawa <yaz@honeyplanet.jp> |
---|---|
date | Mon, 05 Oct 2009 18:05:04 +0900 |
parents | 9a44d900ee55 |
children | |
files | Makefile |
diffstat | 1 files changed, 5 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/Makefile Mon Oct 05 16:06:43 2009 +0900 +++ b/Makefile Mon Oct 05 18:05:04 2009 +0900 @@ -1,5 +1,8 @@ PREFIX = /usr/local +#for 64bit systems +PTRFLAG=-DMOZ_MEMORY_SIZEOF_PTR_2POW=3 + PRODUCT = libjemalloc MAJOR = 1 MINOR = 0 @@ -14,8 +17,8 @@ OBJS = ${SRCS:.c=.o} LIBS = ${PRODUCT}.so ${PRODUCT}.a -CFLAGS += -fPIC -pg -g -DMOZ_MEMORY -DMOZ_MEMORY_LINUX -LDFLAGS += -shared -Wl,-soname,${SONAME} +CFLAGS += -fPIC -pg -g -DMOZ_MEMORY -DMOZ_MEMORY_LINUX $(PTRFLAG) +LDFLAGS += -shared -Wl,-soname,${SONAME} -pthread SONAME = ${PRODUCT}.so.${MAJOR}