bugfix: in freebsd, libthr may call calloc before globalinit

This commit is contained in:
Cloud Wu
2014-06-04 02:51:29 +00:00
parent c10e5412c0
commit f92fc153e4
2 changed files with 11 additions and 4 deletions

View File

@@ -33,8 +33,8 @@ linux freebsd : SKYNET_LIBS += -lrt
# Turn off jemalloc and malloc hook on macosx and freebsd
freebsd macosx : MALLOC_STATICLIB :=
freebsd macosx : SKYNET_DEFINES :=-DNOUSE_JEMALLOC
macosx : MALLOC_STATICLIB :=
macosx : SKYNET_DEFINES :=-DNOUSE_JEMALLOC
linux macosx freebsd :
$(MAKE) all PLAT=$@ SKYNET_LIBS="$(SKYNET_LIBS)" SHARED="$(SHARED)" EXPORT="$(EXPORT)" MALLOC_STATICLIB="$(MALLOC_STATICLIB)" SKYNET_DEFINES="$(SKYNET_DEFINES)"