forked from pool/redis
ca44fb2948
OBS-URL: https://build.opensuse.org/request/show/62671 OBS-URL: https://build.opensuse.org/package/show/server:database/redis?expand=0&rev=18
50 lines
1.8 KiB
Diff
50 lines
1.8 KiB
Diff
---
|
|
src/Makefile | 12 ++++++------
|
|
1 file changed, 6 insertions(+), 6 deletions(-)
|
|
|
|
Index: src/Makefile
|
|
===================================================================
|
|
--- src/Makefile.orig
|
|
+++ src/Makefile
|
|
@@ -19,7 +19,7 @@ ifeq ($(USE_TCMALLOC),yes)
|
|
CCLINK+= -ltcmalloc
|
|
CFLAGS+= -DUSE_TCMALLOC
|
|
endif
|
|
-CCOPT= $(CFLAGS) $(CCLINK) $(ARCH) $(PROF)
|
|
+CCOPT= $(CFLAGS) $(ARCH) $(PROF)
|
|
|
|
PREFIX= /usr/local
|
|
INSTALL_BIN= $(PREFIX)/bin
|
|
@@ -111,26 +111,26 @@ dependencies:
|
|
cd ../deps/linenoise && $(MAKE) ARCH="$(ARCH)"
|
|
|
|
redis-server: $(OBJ)
|
|
- $(CC) -o $(PRGNAME) $(CCOPT) $(DEBUG) $(OBJ)
|
|
+ $(CC) -o $(PRGNAME) $(CCOPT) $(DEBUG) $(OBJ) $(CCLINK)
|
|
|
|
redis-benchmark: dependencies $(BENCHOBJ)
|
|
cd ../deps/hiredis && $(MAKE) static
|
|
- $(CC) -o $(BENCHPRGNAME) $(CCOPT) $(DEBUG) $(BENCHOBJ) ../deps/hiredis/libhiredis.a
|
|
+ $(CC) -o $(BENCHPRGNAME) $(CCOPT) $(DEBUG) $(BENCHOBJ) $(CCLINK) ../deps/hiredis/libhiredis.a
|
|
|
|
redis-benchmark.o:
|
|
$(CC) -c $(CFLAGS) -I../deps/hiredis $(DEBUG) $(COMPILE_TIME) $<
|
|
|
|
redis-cli: dependencies $(CLIOBJ)
|
|
- $(CC) -o $(CLIPRGNAME) $(CCOPT) $(DEBUG) $(CLIOBJ) ../deps/hiredis/libhiredis.a ../deps/linenoise/linenoise.o
|
|
+ $(CC) -o $(CLIPRGNAME) $(CCOPT) $(DEBUG) $(CLIOBJ) $(CCLINK) ../deps/hiredis/libhiredis.a ../deps/linenoise/linenoise.o
|
|
|
|
redis-cli.o:
|
|
$(CC) -c $(CFLAGS) -I../deps/hiredis -I../deps/linenoise $(DEBUG) $(COMPILE_TIME) $<
|
|
|
|
redis-check-dump: $(CHECKDUMPOBJ)
|
|
- $(CC) -o $(CHECKDUMPPRGNAME) $(CCOPT) $(DEBUG) $(CHECKDUMPOBJ)
|
|
+ $(CC) -o $(CHECKDUMPPRGNAME) $(CCOPT) $(DEBUG) $(CHECKDUMPOBJ) $(CCLINK)
|
|
|
|
redis-check-aof: $(CHECKAOFOBJ)
|
|
- $(CC) -o $(CHECKAOFPRGNAME) $(CCOPT) $(DEBUG) $(CHECKAOFOBJ)
|
|
+ $(CC) -o $(CHECKAOFPRGNAME) $(CCOPT) $(DEBUG) $(CHECKAOFOBJ) $(CCLINK)
|
|
|
|
.c.o:
|
|
$(CC) -c $(CFLAGS) $(DEBUG) $(COMPILE_TIME) $<
|