[SR-Dev] git:janakj/postgres: - exec compiles now on freebsd 5.0 (wrong header)

Jan Janak jan at iptel.org
Sun Feb 15 18:55:25 CET 2009


Module: sip-router
Branch: janakj/postgres
Commit: f73f6431d3875a73cb2a3d2f2ea762f163fec1da
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=f73f6431d3875a73cb2a3d2f2ea762f163fec1da

Author: Andrei Pelinescu-Onciul <andrei at iptel.org>
Committer: Andrei Pelinescu-Onciul <andrei at iptel.org>
Date:   Fri Apr 18 17:58:34 2003 +0000

- exec compiles now on freebsd 5.0 (wrong header)
- lots of Makefile LIBS fixes (use $(LOCALBASE) instead of /usr/local and
 added -L/usr/pkg/lib where missing, removed old comments)

---

 modules/db_postgres/Makefile |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/modules/db_postgres/Makefile b/modules/db_postgres/Makefile
index b4db5dd..50a2133 100644
--- a/modules/db_postgres/Makefile
+++ b/modules/db_postgres/Makefile
@@ -7,6 +7,7 @@ NAME=postgres.so
 
 # libpq-fe.h locations
 DEFS +=-I/usr/local/pgsql/include
-LIBS=-L/usr/local/pgsql/lib -lpq
+LIBS=-L$(LOCALBASE)/pgsql/lib -L$(LOCALBASE)/lib/pgsql -L/usr/pkg/lib \
+		-L/usr/pkg/lib/pgsql -lpq
 
 include ../../Makefile.modules




More information about the sr-dev mailing list