Commit ddc62b4c authored by Rich Prohaska's avatar Rich Prohaska Committed by Yoni Fogel

build a single tokumysql .so. closes #1480

git-svn-id: file:///svn/mysql/tokudb-engine/src@9502 c7de825b-a66e-492c-adef-691d508d4ae1
parent 29eff65a
......@@ -4,6 +4,8 @@ MYSQL_LIBDIR = $(HOME)/mysql-5.1.23-rc-build/lib/mysql
TOKUDB = /usr/local/tokudb-4.4
TOKUDB_VERSION = "Tokudb"
DEBUG = 1
GCOV = 0
SINGLESO = 1
SYSTEM = $(shell uname -s | tr [A-Z] [a-z])
# sources to target
......@@ -37,10 +39,13 @@ CPPFLAGS += -DTOKUDB_VERSION=\"$(TOKUDB_VERSION)\"
CXXFLAGS += -g $(OPTFLAGS) $(GCOV_FLAGS) $(MYSQL_CXXFLAGS)
CXXFLAGS += -fPIC
LDFLAGS = -fPIC -shared -Wl,-soname -Wl,libtokudb_engine.so
LIBS = -L$(TOKUDB)/lib -ltokudb -lpthread -lz -lstdc++ -lm -lgcc_s -lc
ifeq ($(SYSTEM),linux)
LIBS += -L$(TOKUDB)/lib -ltokuportability
ifeq ($(SINGLESO),1)
LIBS = $(TOKUDB)/lib/libtokudb.a $(TOKUDB)/lib/libtokuportability.a
else
LIBS = -L$(TOKUDB)/lib -ltokudb -ltokuportability
endif
LIBS += -lpthread -lz -lstdc++ -lm -lgcc_s -lc
# LIBDIR = /usr/lib
# GCCLIBDIR = /usr/lib/gcc/i386-redhat-linux/4.1.1
......
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