mirror of
https://github.com/MariaDB/server.git
synced 2025-11-28 17:36:30 +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: ../lib/libtokudb_cxx.a
|
||||||
db-benchmark-test-tokudb: db-benchmark-test.cpp
|
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
|
db-benchmark-test-bdb: db-benchmark-test.cpp
|
||||||
$(CXX) $(CXXFLAGS) $(BDB_CPPFLAGS) $(BDB_LDFLAGS) $< -o $@ -DDIRSUF=bdb
|
$(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 = -Wall -Werror -g $(OPTFLAGS) $(GCOV_FLAGS) $(PROF_FLAGS)
|
||||||
# CFLAGS += -pg
|
# CFLAGS += -pg
|
||||||
|
|
||||||
|
LDFLAGS += -lpthread
|
||||||
ifdef BDBDIR
|
ifdef BDBDIR
|
||||||
BDB_CPPFLAGS = -I$(BDBDIR)/include
|
BDB_CPPFLAGS = -I$(BDBDIR)/include
|
||||||
BDB_LDFLAGS = -L$(BDBDIR)/lib -ldb -lpthread -Wl,-rpath,$(BDBDIR)/lib
|
BDB_LDFLAGS = -L$(BDBDIR)/lib -ldb -lpthread -Wl,-rpath,$(BDBDIR)/lib
|
||||||
@@ -28,7 +29,7 @@ BDB_CPPFLAGS =
|
|||||||
BDB_LDFLAGS = -ldb
|
BDB_LDFLAGS = -ldb
|
||||||
endif
|
endif
|
||||||
TDB_CPPFLAGS = -I../include
|
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_BDB = db-benchmark-test-bdb
|
||||||
TARGET_TDB = db-benchmark-test-tokudb
|
TARGET_TDB = db-benchmark-test-tokudb
|
||||||
|
|||||||
@@ -21,6 +21,7 @@ CFLAGS += -Wbad-function-cast -Wcast-align -Waggregate-return
|
|||||||
CFLAGS += -Wmissing-noreturn -Wmissing-format-attribute
|
CFLAGS += -Wmissing-noreturn -Wmissing-format-attribute
|
||||||
CPPFLAGS += -L../ -L../../range_tree
|
CPPFLAGS += -L../ -L../../range_tree
|
||||||
CPPFLAGS += -I. -I../ -I../../range_tree -I../../../newbrt -I../../../include
|
CPPFLAGS += -I. -I../ -I../../range_tree -I../../../newbrt -I../../../include
|
||||||
|
LDFLAGS += -lz
|
||||||
|
|
||||||
|
|
||||||
SRCS = $(wildcard *.c)
|
SRCS = $(wildcard *.c)
|
||||||
@@ -118,13 +119,13 @@ foo:
|
|||||||
echo ../locktree.h test.h $(LT_LINEAR)
|
echo ../locktree.h test.h $(LT_LINEAR)
|
||||||
|
|
||||||
%.lin: %.c ../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)
|
%.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)
|
%.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)
|
%.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:
|
clean:
|
||||||
rm -f $(ALL_TESTS) *.o *.gcno *.gcda *.gcov
|
rm -f $(ALL_TESTS) *.o *.gcno *.gcda *.gcov
|
||||||
|
|||||||
@@ -32,8 +32,8 @@ endif
|
|||||||
BDB_LDFLAGS += -Wl,-rpath,$(BDBDIR)/lib
|
BDB_LDFLAGS += -Wl,-rpath,$(BDBDIR)/lib
|
||||||
endif
|
endif
|
||||||
BDB_LDFLAGS += -lpthread
|
BDB_LDFLAGS += -lpthread
|
||||||
TDB_LOADLIBES = -L.. -ltokudb -Wl,-rpath,.. -lpthread
|
TDB_LOADLIBES = -L.. -ltokudb -Wl,-rpath,.. -lpthread -lz
|
||||||
TDB_TRACELOADLIBES = -L.. -ltokudbtrace -Wl,-rpath,.. -lpthread
|
TDB_TRACELOADLIBES = -L.. -ltokudbtrace -Wl,-rpath,.. -lpthread -lz
|
||||||
|
|
||||||
ifeq ($(VGRIND),)
|
ifeq ($(VGRIND),)
|
||||||
BDB_SUPPRESSIONS =
|
BDB_SUPPRESSIONS =
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ else
|
|||||||
SETTOKUENV=
|
SETTOKUENV=
|
||||||
UNSETTOKUENV=
|
UNSETTOKUENV=
|
||||||
endif
|
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
|
# vars to compile bins that handle tokudb using libtokudb.a
|
||||||
STATIC_CPPFLAGS = -I../include
|
STATIC_CPPFLAGS = -I../include
|
||||||
|
|||||||
Reference in New Issue
Block a user