Commit 00b63e02 authored by Bradley C. Kuszmaul's avatar Bradley C. Kuszmaul Committed by Yoni Fogel

Use dynamic libraries for newbrt tests. Fix #2848. close[t:2848]

git-svn-id: file:///svn/toku/tokudb@22718 c7de825b-a66e-492c-adef-691d508d4ae1
parent be8b5f43
......@@ -20,6 +20,7 @@ $(LIBPORTABILITY): $(TARGET)
$(TARGET): $(OBJS)
$(OBJS): CFLAGS += -DTOKU_ALLOW_DEPRECATED -D_GNU_SOURCE
$(OBJS): VISIBILITY=
#Blank on purpose
check: $(TARGET)
......
......@@ -14,6 +14,7 @@ DEPEND_COMPILE += \
# keep this line so I can have a \ on the previous line
NEWBRT = newbrt.$(AEXT)
NEWBRT_SO = libnewbrt.$(SOEXT)
IPO_NEWBRT = ipo_newbrt.$(AEXT)
NEWBRT_BUNDLE = newbrt.bundle
#All executables need to statically link to newbrt
......@@ -119,7 +120,10 @@ brtloader.$(OEXT): brtloader.c
$(CXX) -DTOKU_ALLOW_DEPRECATED $(CXXFLAGS) -c $<
endif
$(NEWBRT_O_FILES): VISIBILITY=
$(NEWBRT): $(NEWBRT_O_FILES)
$(NEWBRT_SO): $(NEWBRT_O_FILES)
$(TOKULINKER) $(SHARED) $(SYMBOLS) $(NEWBRT_O_FILES) -o$(NEWBRT_SO)
$(NEWBRT_BUNDLE): log_code.c log_header.h
......
......@@ -205,5 +205,5 @@ clean:
rm -f test_oexcl.c.tmp
rm -f *.brt *.clean *.dirty *.tdb *.dat *.data *.out *.check.valgrind
$(BINS): $(LINK_FILES)
$(BINS): LDFLAGS=-L../ -lnewbrt -lz -lpthread
$(BINS): test.h
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