Commit 57f779ee authored by Yoni Fogel's avatar Yoni Fogel

Port to Leopard

git-svn-id: file:///svn/tokudb@2442 c7de825b-a66e-492c-adef-691d508d4ae1
parent c2fc05f7
...@@ -19,7 +19,7 @@ BDB_CPPFLAGS = ...@@ -19,7 +19,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 -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
......
...@@ -13,10 +13,12 @@ CPPFLAGS += -D_GNU_SOURCE -D_THREAD_SAFE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_S ...@@ -13,10 +13,12 @@ CPPFLAGS += -D_GNU_SOURCE -D_THREAD_SAFE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_S
ifneq ($(OSX),) ifneq ($(OSX),)
LIBEXT=dylib LIBEXT=dylib
SHARED=-dynamiclib SHARED=-dynamiclib
RPATHNAME=-install_name @rpath/$(LIBNAME).$(LIBEXT)
CFLAGS+=-fno-common CFLAGS+=-fno-common
else else
LIBEXT=so LIBEXT=so
SHARED=-shared SHARED=-shared
RPATHNAME=
endif endif
.PHONY: install logformat .PHONY: install logformat
...@@ -50,7 +52,7 @@ LOCKTREE_BINS = lock_tree/locktree.o lock_tree/rth.o lock_tree/lth.o $(RANGETRE ...@@ -50,7 +52,7 @@ LOCKTREE_BINS = lock_tree/locktree.o lock_tree/rth.o lock_tree/lth.o $(RANGETRE
$(LIBNAME).$(LIBEXT): $(DBBINS) $(LOCKTREE_BINS) $(LIBNAME).$(LIBEXT): $(DBBINS) $(LOCKTREE_BINS)
cc $(CPPFLAGS) $^ $(SHARED) -o $@ $(CFLAGS) -lz cc $(CPPFLAGS) $^ $(SHARED) -o $@ $(CFLAGS) -lz $(RPATHNAME)
$(LIBNAME).a: $(DBBINS) $(LOCKTREE_BINS) $(LIBNAME).a: $(DBBINS) $(LOCKTREE_BINS)
$(AR) rv $@ $^ $(AR) rv $@ $^
......
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