mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-24 20:23:06 +00:00
turn off memory hook in freeBSD
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
## Build
|
||||
|
||||
Install autoconf first for jemalloc
|
||||
For linux, install autoconf first for jemalloc
|
||||
|
||||
```
|
||||
git clone git@github.com:cloudwu/skynet.git
|
||||
@@ -15,6 +15,8 @@ export PLAT=linux
|
||||
make
|
||||
```
|
||||
|
||||
For freeBSD , use gmake instead of make .
|
||||
|
||||
## Test
|
||||
|
||||
Run these in different console
|
||||
|
||||
@@ -31,10 +31,10 @@ macosx : EXPORT :=
|
||||
macosx linux : SKYNET_LIBS += -ldl
|
||||
linux freebsd : SKYNET_LIBS += -lrt
|
||||
|
||||
# Turn off jemalloc and malloc hook on macosx
|
||||
# Turn off jemalloc and malloc hook on macosx and freebsd
|
||||
|
||||
macosx : MALLOC_STATICLIB :=
|
||||
macosx : SKYNET_DEFINES :=-DNOUSE_JEMALLOC
|
||||
freebsd macosx : MALLOC_STATICLIB :=
|
||||
freebsd 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)"
|
||||
|
||||
Reference in New Issue
Block a user