Commit 99169fba authored by Rich Prohaska's avatar Rich Prohaska

remove the .. rpath addresses #49

git-svn-id: file:///svn/tokudb@838 c7de825b-a66e-492c-adef-691d508d4ae1
parent 5cd6a6d2
# standard build: make # standard build: make
# build with Berkeley DB 4.1: make BDB=/usr/local/BerkeleyDB.4.1 # build with Berkeley DB 4.1: make BDBDIR=/usr/local/BerkeleyDB.4.1
# build with TokuDB: make BDB=~/svn/tokudb # build with TokuDB: make BDBDIR=~/svn/tokudb
BENCHDBS = bench.bdb/ bench.tokudb BENCHDBS = bench.bdb/ bench.tokudb
OPTFLAGS = -O2
CFLAGS = -Wall -Werror -g CFLAGS = -Wall -Werror -g
# CFLAGS += -pg # CFLAGS += -pg
CFLAGS += -O2 CFLAGS += $(OPTFLAGS)
ifdef BDB ifdef BDBDIR
CPPFLAGS = -I$(BDB)/include BDB_CPPFLAGS = -I$(BDBDIR)/include
LDFLAGS = -L$(BDB)/lib -ldb -lpthread -Wl,-rpath,$(BDB)/lib BDB_LDFLAGS = -L$(BDBDIR)/lib -ldb -lpthread -Wl,-rpath,$(BDBDIR)/lib
else else
CPPFLAGS = BDB_CPPFLAGS =
LDFLAGS = -ldb BDB_LDFLAGS = -ldb
endif endif
TARGETS = db-benchmark-test-bdb db-benchmark-test-tokudb TARGETS = db-benchmark-test-bdb db-benchmark-test-tokudb
...@@ -24,6 +25,6 @@ clean: ...@@ -24,6 +25,6 @@ clean:
rm -rf $(TARGETS) $(BENCHDBS) rm -rf $(TARGETS) $(BENCHDBS)
db-benchmark-test-tokudb: db-benchmark-test.c db-benchmark-test-tokudb: db-benchmark-test.c
cc -Wall -Werror -g -O2 -I../include -L../lib -ldb -Wl,-rpath,../lib $< -o $@ -DDIRSUF=tokudb cc $(CFLAGS) -I../include -L../lib -ldb -Wl,-rpath,$(PWD)/../lib $< -o $@ -DDIRSUF=tokudb
db-benchmark-test-bdb: db-benchmark-test.c db-benchmark-test-bdb: db-benchmark-test.c
cc -Wall -Werror -g -O2 -ldb $< -o $@ -DDIRSUF=bdb cc $(CFLAGS) $(BDB_CPPFLAGS) $(BDB_LDFLAGS) $< -o $@ -DDIRSUF=bdb
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment