mirror of
https://github.com/MariaDB/server.git
synced 2025-11-30 05:23:50 +03:00
Add -lz. Addresses #1131.
git-svn-id: file:///svn/tokudb.1131@5954 c7de825b-a66e-492c-adef-691d508d4ae1
This commit is contained in:
committed by
Yoni Fogel
parent
abda370325
commit
430aa86333
@@ -47,7 +47,7 @@ clean:
|
||||
|
||||
db-benchmark-test-tokudb: ../lib/libtokudb_cxx.a
|
||||
db-benchmark-test-tokudb: db-benchmark-test.cpp
|
||||
$(CXX) $(CXXFLAGS) -I../include -L../lib -Wl,-rpath,$(PWD)/../lib $< -o $@ -ltokudb -ltokudb_cxx -DDIRSUF=tokudb
|
||||
$(CXX) $(CXXFLAGS) -I../include -L../lib -Wl,-rpath,$(PWD)/../lib $< -o $@ -ltokudb -ltokudb_cxx -lz -DDIRSUF=tokudb
|
||||
|
||||
db-benchmark-test-bdb: db-benchmark-test.cpp
|
||||
$(CXX) $(CXXFLAGS) $(BDB_CPPFLAGS) $(BDB_LDFLAGS) $< -o $@ -DDIRSUF=bdb
|
||||
|
||||
@@ -20,6 +20,7 @@ OPTFLAGS = -O2
|
||||
CFLAGS = -Wall -Werror -g $(OPTFLAGS) $(GCOV_FLAGS) $(PROF_FLAGS)
|
||||
# CFLAGS += -pg
|
||||
|
||||
LDFLAGS += -lpthread
|
||||
ifdef BDBDIR
|
||||
BDB_CPPFLAGS = -I$(BDBDIR)/include
|
||||
BDB_LDFLAGS = -L$(BDBDIR)/lib -ldb -lpthread -Wl,-rpath,$(BDBDIR)/lib
|
||||
@@ -28,7 +29,7 @@ BDB_CPPFLAGS =
|
||||
BDB_LDFLAGS = -ldb
|
||||
endif
|
||||
TDB_CPPFLAGS = -I../include
|
||||
TDB_LDFLAGS = -L../lib -ltokudb -Wl,-rpath,$(PWD)/../lib
|
||||
TDB_LDFLAGS = -L../lib -ltokudb -lz -Wl,-rpath,$(PWD)/../lib
|
||||
|
||||
TARGET_BDB = db-benchmark-test-bdb
|
||||
TARGET_TDB = db-benchmark-test-tokudb
|
||||
|
||||
@@ -21,6 +21,7 @@ CFLAGS += -Wbad-function-cast -Wcast-align -Waggregate-return
|
||||
CFLAGS += -Wmissing-noreturn -Wmissing-format-attribute
|
||||
CPPFLAGS += -L../ -L../../range_tree
|
||||
CPPFLAGS += -I. -I../ -I../../range_tree -I../../../newbrt -I../../../include
|
||||
LDFLAGS += -lz
|
||||
|
||||
|
||||
SRCS = $(wildcard *.c)
|
||||
@@ -118,13 +119,13 @@ foo:
|
||||
echo ../locktree.h test.h $(LT_LINEAR)
|
||||
|
||||
%.lin: %.c ../locktree.h test.h $(LT_LINEAR)
|
||||
$(CC) -DDIR=\"dir.$<.lin\" $(CPPFLAGS) $(CFLAGS) $< -o $@ $(LT_LINEAR) $(NEWBRT_BINS)
|
||||
$(CC) -DDIR=\"dir.$<.lin\" $(CPPFLAGS) $(CFLAGS) $< -o $@ $(LT_LINEAR) $(NEWBRT_BINS) $(LDFLAGS)
|
||||
%.tlin: %.c ../locktree.h test.h $(LT_TLINEAR)
|
||||
$(CC) -DDIR=\"dir.$<.tlin\" $(CPPFLAGS) $(CFLAGS) $< -o $@ $(LT_TLINEAR) $(NEWBRT_BINS) -DTOKU_RT_NOOVERLAPS
|
||||
$(CC) -DDIR=\"dir.$<.tlin\" $(CPPFLAGS) $(CFLAGS) $< -o $@ $(LT_TLINEAR) $(NEWBRT_BINS) -DTOKU_RT_NOOVERLAPS $(LDFLAGS)
|
||||
%.tlog: %.c ../locktree.h test.h $(LT_TLOG)
|
||||
$(CC) -DDIR=\"dir.$<.tlog\" $(CPPFLAGS) $(CFLAGS) $< -o $@ $(LT_TLOG) $(NEWBRT_BINS) -DTOKU_RT_NOOVERLAPS
|
||||
$(CC) -DDIR=\"dir.$<.tlog\" $(CPPFLAGS) $(CFLAGS) $< -o $@ $(LT_TLOG) $(NEWBRT_BINS) -DTOKU_RT_NOOVERLAPS $(LDFLAGS)
|
||||
%.log: %.c ../locktree.h test.h $(LT_LOG)
|
||||
$(CC) -DDIR=\"dir.$<.log\" $(CPPFLAGS) $(CFLAGS) $< -o $@ $(LT_LOG) $(NEWBRT_BINS)
|
||||
$(CC) -DDIR=\"dir.$<.log\" $(CPPFLAGS) $(CFLAGS) $< -o $@ $(LT_LOG) $(NEWBRT_BINS) $(LDFLAGS)
|
||||
|
||||
clean:
|
||||
rm -f $(ALL_TESTS) *.o *.gcno *.gcda *.gcov
|
||||
|
||||
@@ -32,8 +32,8 @@ endif
|
||||
BDB_LDFLAGS += -Wl,-rpath,$(BDBDIR)/lib
|
||||
endif
|
||||
BDB_LDFLAGS += -lpthread
|
||||
TDB_LOADLIBES = -L.. -ltokudb -Wl,-rpath,.. -lpthread
|
||||
TDB_TRACELOADLIBES = -L.. -ltokudbtrace -Wl,-rpath,.. -lpthread
|
||||
TDB_LOADLIBES = -L.. -ltokudb -Wl,-rpath,.. -lpthread -lz
|
||||
TDB_TRACELOADLIBES = -L.. -ltokudbtrace -Wl,-rpath,.. -lpthread -lz
|
||||
|
||||
ifeq ($(VGRIND),)
|
||||
BDB_SUPPRESSIONS =
|
||||
|
||||
@@ -26,7 +26,7 @@ else
|
||||
SETTOKUENV=
|
||||
UNSETTOKUENV=
|
||||
endif
|
||||
LDFLAGS = -L../lib -ltokudb -lpthread $(TDB_LOADLIBES)
|
||||
LDFLAGS = -L../lib -ltokudb -lpthread $(TDB_LOADLIBES) -lz
|
||||
|
||||
# vars to compile bins that handle tokudb using libtokudb.a
|
||||
STATIC_CPPFLAGS = -I../include
|
||||
|
||||
Reference in New Issue
Block a user