[sr-dev] git:master: db_sqlite Make sure module compiles on BSD systems too

Olle E. Johansson oej at edvina.net
Tue Mar 5 12:10:22 CET 2013


Module: sip-router
Branch: master
Commit: 98be8f70d4df6011991d04b5c0d86a1aac6a0737
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=98be8f70d4df6011991d04b5c0d86a1aac6a0737

Author: Olle E. Johansson <oej at edvina.net>
Committer: Olle E. Johansson <oej at edvina.net>
Date:   Tue Mar  5 12:09:42 2013 +0100

db_sqlite Make sure module compiles on BSD systems too

Copied from db_unixodbc/Makefile

---

 modules/db_sqlite/Makefile |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/modules/db_sqlite/Makefile b/modules/db_sqlite/Makefile
index 4a99fe8..150e1d6 100644
--- a/modules/db_sqlite/Makefile
+++ b/modules/db_sqlite/Makefile
@@ -6,7 +6,12 @@ include ../../Makefile.defs
 auto_gen=
 NAME=db_sqlite.so
 
-LIBS +=-lsqlite3
+# sqlite3.h locations (freebsd,openbsd  solaris)
+DEFS += -I$(LOCALBASE)/include
+
+# libodbc locations on RH/Suse, Solaris /OpenBSD, FreeBSD
+# (Debian does the right thing and puts it in /usr/lib)
+LIBS= -L$(LOCALBASE)/lib -lsqlite3
 
 DEFS+=-DKAMAILIO_MOD_INTERFACE
 




More information about the sr-dev mailing list