mirror of
https://github.com/MariaDB/server.git
synced 2026-05-02 13:15:32 +02:00
Added HandlerSocket plugin
- Fixed compiler errors - Modified Makefiles to be part of plugin directory - Some minor changes in database.cpp to use the new MariaDB handler interface
This commit is contained in:
parent
26aa83bfc0
commit
2c7d6f12ee
109 changed files with 21060 additions and 0 deletions
27
plugin/handler_socket/libhsclient/Makefile.plain
Normal file
27
plugin/handler_socket/libhsclient/Makefile.plain
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
|
||||
CXX = g++ -Wall -g -fno-rtti -fno-exceptions -fPIC -DPIC
|
||||
LDFLAGS =
|
||||
|
||||
CXXFLAGS += -O3 -DNDEBUG
|
||||
|
||||
COMMON_OBJS = config.o fatal.o socket.o string_util.o escape.o
|
||||
HSCLIENT_OBJS = $(COMMON_OBJS) hstcpcli.o
|
||||
|
||||
all: libhsclient.a
|
||||
|
||||
libhsclient.a: $(HSCLIENT_OBJS)
|
||||
$(AR) rc $@ $^
|
||||
$(AR) s $@
|
||||
|
||||
clean:
|
||||
rm -f *.a *.so *.o
|
||||
|
||||
LIBDIR = $(shell \
|
||||
if [ -e /usr/lib64/mysql ]; then echo /usr/lib64; else echo /usr/lib; fi)
|
||||
|
||||
install: libhsclient.a
|
||||
sudo sh -c 'cp libhsclient.a libhsclient.a.cpy && \
|
||||
mv libhsclient.a.cpy $(LIBDIR)/libhsclient.a && \
|
||||
mkdir -p /usr/include/handlersocket && \
|
||||
cp -a *.hpp /usr/include/handlersocket/'
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue