Fix for Bugzilla Bug 6

'rpath' simulated in OSX 10.4

git-svn-id: file:///svn/tokudb@639 c7de825b-a66e-492c-adef-691d508d4ae1
This commit is contained in:
Yoni Fogel 2007-11-19 15:49:18 +00:00
parent f0e169ab6e
commit 8bd397bc80

View file

@ -1,12 +1,14 @@
# On OSX do:
# make OSX=OSX
#Note: On OSX, ld does not support -rpath, so /usr/lib/libdb.dylib must be the tokudb library.
ifeq ($(OSX),OSX)
#Note: OSX 10.4 needs DYLD_LIBRARY_PATH. OSX 10.5 claims to support -rpath.
LIBEXT=dylib
VGRIND=
TDB_LOADLIBES = -L../ -ldb
SETTOKUENV=export DYLD_LIBRARY_PATH=..
else
SETTOKUENV=
LIBEXT=so
TDB_LOADLIBES = -L../ -ldb -Wl,-rpath,..
VGRIND=valgrind --quiet --error-exitcode=1 --leak-check=yes
@ -50,7 +52,7 @@ $(ALL_TESTS):
%.bdbrun: %.bdb
$(VGRIND) ./$<
%.tdbrun: %.tdb
$(VGRIND) ./$<
$(SETTOKUENV); $(VGRIND) ./$<
# For a few of the tests bdb is making valgrind unhappy.
NO_VGRIND = \