[sr-dev] git:master: db_postgres: fix cross-compilation

Ovidiu Sas osas at voipembedded.com
Mon Dec 3 14:48:21 CET 2012


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

Author: Ovidiu Sas <osas at voipembedded.com>
Committer: Ovidiu Sas <osas at voipembedded.com>
Date:   Mon Dec  3 08:43:01 2012 -0500

db_postgres: fix cross-compilation

---

 modules/db_postgres/Makefile |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/modules/db_postgres/Makefile b/modules/db_postgres/Makefile
index 03e8c27..66292ae 100644
--- a/modules/db_postgres/Makefile
+++ b/modules/db_postgres/Makefile
@@ -17,15 +17,15 @@ endif
 ifneq ($(PGCFG),)
 	# use autodetection
 	DEFS += -I$(shell $(PGCFG) --includedir)
-	LIBS = -L$(shell $(PGCFG) --libdir) -lpq
+	LIBS += -L$(shell $(PGCFG) --libdir) -lpq
 else
 	# use standard know paths
 	# libpq-fe.h locations
 	DEFS +=-I$(LOCALBASE)/include -I$(LOCALBASE)/pgsql/include \
-		 -I$(SYSBASE)/include/pgsql -I$(SYSBASE)/include/postgresql \
-		 -I$(SYSBASE)/include/postgresql/8.0
-	LIBS=-L$(LOCALBASE)/lib -L$(LOCALBASE)/pgsql/lib -L$(LOCALBASE)/lib/pgsql \
-		 -L /usr/lib -lpq
+		-I$(SYSBASE)/include/pgsql -I$(SYSBASE)/include/postgresql \
+		-I$(SYSBASE)/include/postgresql/8.0
+	LIBS +=-L$(LOCALBASE)/lib -L$(LOCALBASE)/pgsql/lib \
+		-L$(LOCALBASE)/lib/pgsql -lpq
 endif
 
 #DEFS += -DPG_TEST




More information about the sr-dev mailing list