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

the -nostdlib prohibits coverage compiles to work. addresses #363

git-svn-id: file:///svn/mysql/tokudb-engine/src@3020 c7de825b-a66e-492c-adef-691d508d4ae1
parent b5ed627e
# the tunables
MYSQL_SRC = $(HOME)/mysql-5.1.23-rc MYSQL_SRC = $(HOME)/mysql-5.1.23-rc
MYSQL_LIBDIR = $(HOME)/mysql-5.1.23-rc-build/lib/mysql MYSQL_LIBDIR = $(HOME)/mysql-5.1.23-rc-build/lib/mysql
TOKUDB = /usr/local/tokudb-4.4 TOKUDB = /usr/local/tokudb-4.4
# sources to target
SRCS = $(wildcard *.cc) SRCS = $(wildcard *.cc)
OBJS = $(patsubst %.cc,%.o,$(SRCS)) OBJS = $(patsubst %.cc,%.o,$(SRCS))
TARGET = $(patsubst %.o,%.so,$(OBJS)) TARGET = $(patsubst %.o,%.so,$(OBJS))
# someday turn up the optimization
OPTFLAGS = -O0 OPTFLAGS = -O0
# GCOV_FLAGS = -ftest-coverage -fprofile-arcs # GCOV_FLAGS = -ftest-coverage -fprofile-arcs
# MYSQL_FLAGS =
# debug flags
MYSQL_FLAGS = -DHAVE_CONFIG_H -DDBUG_ON -DSAFE_MUTEX -DEXTRA_DEBUG -DSAFEMALLOC -DPEDANTIC_SAFEMALLOC -DSAFE_MUTEX MYSQL_FLAGS = -DHAVE_CONFIG_H -DDBUG_ON -DSAFE_MUTEX -DEXTRA_DEBUG -DSAFEMALLOC -DPEDANTIC_SAFEMALLOC -DSAFE_MUTEX
MYSQL_FLAGS += -DMYSQL_DYNAMIC_PLUGIN MYSQL_FLAGS += -DMYSQL_DYNAMIC_PLUGIN
MYSQL_CXXFLAGS = -fno-implicit-templates -fno-exceptions -fno-rtti MYSQL_CXXFLAGS = -fno-implicit-templates -fno-exceptions -fno-rtti
CPPFLAGS = -I. -I$(MYSQL_SRC)/sql -I$(MYSQL_SRC)/include -I$(MYSQL_SRC)/regex -I$(TOKUDB)/include CPPFLAGS = -I. -I$(MYSQL_SRC)/sql -I$(MYSQL_SRC)/include -I$(MYSQL_SRC)/regex -I$(TOKUDB)/include
# CPPFLAGS += -DMT -DMD -DMP -DMF
CPPFLAGS += $(MYSQL_FLAGS) CPPFLAGS += $(MYSQL_FLAGS)
CXXFLAGS = -Wall -Werror -g $(OPTFLAGS) $(GCOV_FLAGS) $(MYSQL_CXXFLAGS) CXXFLAGS = -Wall -Werror -g $(OPTFLAGS) $(GCOV_FLAGS) $(MYSQL_CXXFLAGS)
CXXFLAGS += -fPIC CXXFLAGS += -fPIC
LDFLAGS = -shared -nostdlib -Wl,-soname -Wl,libtokudb_engine.so LDFLAGS = -shared -Wl,-soname -Wl,libtokudb_engine.so
LIBS = -L$(TOKUDB)/lib -ltokudb -lpthread -lz -lstdc++ -lm -lgcc_s -lc LIBS = -L$(TOKUDB)/lib -ltokudb -lpthread -lz -lstdc++ -lm -lgcc_s -lc
# LIBDIR = /usr/lib # LIBDIR = /usr/lib
......
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