|
@@ -20,25 +20,19 @@ endif
|
|
|
endif
|
|
|
|
|
|
ifneq ($(MYSQLCFG),)
|
|
|
-
|
|
|
# use autodetection
|
|
|
DEFS += $(shell $(MYSQLCFG) --include | sed 's/\(-I.*\)\/mysql/\1/g' )
|
|
|
LIBS = $(shell $(MYSQLCFG) --libs)
|
|
|
-
|
|
|
else
|
|
|
-
|
|
|
# mysql.h locations (freebsd,openbsd solaris)
|
|
|
- DEFS +=-DSER_MOD_INTERFACE -I$(LOCALBASE)/include \
|
|
|
+ DEFS +=-I$(LOCALBASE)/include \
|
|
|
-I$(LOCALBASE)/include/mysql \
|
|
|
- -I$(LOCALBASE)/mysql/include \
|
|
|
- -I/usr/include/mysql
|
|
|
-
|
|
|
+ -I$(LOCALBASE)/mysql/include
|
|
|
# libmysqlclient locations on RH/Suse, Solaris /OpenBSD, FreeBSD
|
|
|
# (Debian does the right thing and puts it in /usr/lib)
|
|
|
- LIBS=-L/usr/lib/mysql -L$(LOCALBASE)/lib -L$(LOCALBASE)/lib/mysql \
|
|
|
+ LIBS=-L$(LOCALBASE)/lib -L$(LOCALBASE)/lib/mysql \
|
|
|
-L$(LOCALBASE)/mysql/lib/mysql/ \
|
|
|
-L$(LOCALBASE)/mysql/lib \
|
|
|
- -L/usr/lib64/mysql \
|
|
|
-lmysqlclient -lz
|
|
|
endif
|
|
|
|