From 5ecbe8b1682982211558c33fd4cfd15c5430fb06 Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Mon, 2 Oct 2006 04:19:04 +0000 Subject: [PATCH] make this build in a few more places for now. This still needs proper autoconf detection for mysql. git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2940 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/mod/event_handlers/mod_cdr/Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/mod/event_handlers/mod_cdr/Makefile b/src/mod/event_handlers/mod_cdr/Makefile index 0a1be625f0..c1858bbf13 100644 --- a/src/mod/event_handlers/mod_cdr/Makefile +++ b/src/mod/event_handlers/mod_cdr/Makefile @@ -1,5 +1,7 @@ -LDFLAGS += -L/usr/lib64/mysql -L/usr/lib/mysql -L/usr/local/lib/mysql -lmysqlclient -lz -lcrypt -lnsl -lm -lssl -lcrypto -CFLAGS += -I/usr/include/mysql -I/usr/local/include/mysql + +CFLAGS += $(shell mysql_config --includes) +LDFLAGS += $(shell mysql_config --libs ) + CPPCC = g++ OBJS=cdrcontainer.o basecdr.o baseregistry.o mysqlcdr.o pddcdr.o csvcdr.o