]> git.saurik.com Git - redis.git/commitdiff
It is now possible to build with: make 32bit USE_JEMALLOC=yes
authorantirez <antirez@gmail.com>
Wed, 1 Jun 2011 15:08:12 +0000 (17:08 +0200)
committerantirez <antirez@gmail.com>
Mon, 20 Jun 2011 09:54:57 +0000 (11:54 +0200)
src/Makefile

index 35ffb94a462808037265e4f40f0a27fa039b9f44..ac54858a32013fb49537a3f46c827753786ed051 100644 (file)
@@ -155,7 +155,7 @@ dependencies:
        @cd ../deps/linenoise && $(MAKE) ARCH="$(ARCH)"
 
 ../deps/jemalloc/lib/libjemalloc.a:
-       cd ../deps/jemalloc && ./configure --with-jemalloc-prefix=je_ --enable-cc-silence && $(MAKE) lib/libjemalloc.a
+       cd ../deps/jemalloc && ./configure $(JEMALLOC_CFLAGS) --with-jemalloc-prefix=je_ --enable-cc-silence && $(MAKE) lib/libjemalloc.a
 
 redis-server: $(OBJ)
        $(QUIET_CC)$(CC) -o $(PRGNAME) $(CCOPT) $(DEBUG) $(OBJ) $(CCLINK) $(ALLOC_LINK)
@@ -203,7 +203,7 @@ log:
        @echo ""
        @echo "WARNING: if it fails under Linux you probably need to install libc6-dev-i386"
        @echo ""
-       $(MAKE) ARCH="-m32"
+       $(MAKE) ARCH="-m32" JEMALLOC_CFLAGS='CFLAGS="-std=gnu99 -Wall -pipe -g3 -fvisibility=hidden -O3 -funroll-loops -m32"'
 
 gprof:
        $(MAKE) PROF="-pg"