From 27364ac890a39d1b387013b20451f414c9db9289 Mon Sep 17 00:00:00 2001 From: Adam- Date: Mon, 8 Mar 2010 03:08:37 +0000 Subject: Added the --with-mysqlpp option to configure to tell it where mysql++ is installed at git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2804 5417fbe8-f217-4b02-8779-1006273d7864 --- src/modules/Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/modules') diff --git a/src/modules/Makefile b/src/modules/Makefile index b2686ae84..723e24494 100644 --- a/src/modules/Makefile +++ b/src/modules/Makefile @@ -11,6 +11,7 @@ MAKEARGS = 'CFLAGS=${CFLAGS}' 'CC=${CC}' 'ANOPELIBS=${ANOPELIBS}' \ OBJECTS= $(SRCS:.c=.so) OBJECTS+= $(SRCS:.cpp=.so) CDEFS= -rdynamic -Wall +MYSQL_ARGS = -I$(MYSQLDIR)/include/ -L$(MYSQLDIR)/lib/ -Wl,-rpath -Wl,$(MYSQLDIR)/lib/ -lmysqlpp all: modules subs @@ -28,12 +29,12 @@ distclean: spotless .c.so: $(MAKEBIN) $(CC) ${CFLAGS} ${CDEFS} ${MODULEFLAGS} \ - $(if $(shell grep RequiredLibraries $< | grep mysqlpp),-lmysqlpp) \ + $(if $(shell grep RequiredLibraries $< | grep mysqlpp), $(MYSQL_ARGS)) \ -I../${INCLUDEDIR} -o $@ $< .cpp.so: $(MAKEBIN) $(CC) ${CFLAGS} ${CDEFS} ${MODULEFLAGS} \ - $(if $(shell grep RequiredLibraries $< | grep mysqlpp),-lmysqlpp) \ + $(if $(shell grep RequiredLibraries $< | grep mysqlpp), $(MYSQL_ARGS)) \ -I../${INCLUDEDIR} -o $@ $< subs: -- cgit