Browse Source

db_sqlite Make sure module compiles on BSD systems too

Copied from db_unixodbc/Makefile
Olle E. Johansson 12 years ago
parent
commit
98be8f70d4
1 changed files with 6 additions and 1 deletions
  1. 6 1
      modules/db_sqlite/Makefile

+ 6 - 1
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