diff --git a/makefile.inc b/makefile.inc index 657ebf849..976b7de25 100644 --- a/makefile.inc +++ b/makefile.inc @@ -26,7 +26,7 @@ endif CFLAGS := $(CFLAGS) -Wall LDLIBS := $(LDLIBS) -pthread -LDMYSQL := -lmysqld +LDMYSQL := -static -lmysqld CPP_LDLIBS := -lstdc++ # @@ -40,4 +40,4 @@ endif ifdef PROF CFLAGS := $(CFLAGS) -DSS_PROF -endif \ No newline at end of file +endif diff --git a/server/core/Makefile b/server/core/Makefile index 6f08a4729..2bd095dea 100644 --- a/server/core/Makefile +++ b/server/core/Makefile @@ -75,7 +75,7 @@ POBJS=maxpasswd.o secrets.o utils.o LIBS=-L../inih/extra -linih -lssl -lstdc++ \ -L$(EMBEDDED_LIB) \ -lz -lm -lcrypt -lcrypto -ldl -laio -lrt -pthread -llog_manager \ - -lmysqld + -static -lmysqld all: maxscale maxkeys maxpasswd diff --git a/server/modules/monitor/Makefile b/server/modules/monitor/Makefile index 7fdbc5843..7bdf6d9c8 100644 --- a/server/modules/monitor/Makefile +++ b/server/modules/monitor/Makefile @@ -39,7 +39,7 @@ GALERAOBJ=$(GALERASRCS:.c=.o) SRCS=$(MYSQLSRCS) OBJ=$(SRCS:.c=.o) LIBS=$(UTILSPATH)/skygw_utils.o -llog_manager \ - -L$(EMBEDDED_LIB) -lmysqld + -L$(EMBEDDED_LIB) -static -lmysqld MODULES=libmysqlmon.so libgaleramon.so diff --git a/server/modules/routing/readwritesplit/Makefile b/server/modules/routing/readwritesplit/Makefile index c60f2ffd1..be489f740 100644 --- a/server/modules/routing/readwritesplit/Makefile +++ b/server/modules/routing/readwritesplit/Makefile @@ -38,7 +38,7 @@ LDFLAGS=-shared -L$(LOGPATH) -L$(QCLASSPATH) -L$(EMBEDDED_LIB) \ SRCS=readwritesplit.c OBJ=$(SRCS:.c=.o) -LIBS=-lssl -pthread -llog_manager -lquery_classifier -lmysqld +LIBS=-lssl -pthread -llog_manager -lquery_classifier -static -lmysqld MODULES=libreadwritesplit.so all: $(MODULES)