Browse Source

db_postgres: fix cross-compilation

Ovidiu Sas 12 years ago
parent
commit
175934a802
1 changed files with 5 additions and 5 deletions
  1. 5 5
      modules/db_postgres/Makefile

+ 5 - 5
modules/db_postgres/Makefile

@@ -17,15 +17,15 @@ endif
 ifneq ($(PGCFG),)
 ifneq ($(PGCFG),)
 	# use autodetection
 	# use autodetection
 	DEFS += -I$(shell $(PGCFG) --includedir)
 	DEFS += -I$(shell $(PGCFG) --includedir)
-	LIBS = -L$(shell $(PGCFG) --libdir) -lpq
+	LIBS += -L$(shell $(PGCFG) --libdir) -lpq
 else
 else
 	# use standard know paths
 	# use standard know paths
 	# libpq-fe.h locations
 	# libpq-fe.h locations
 	DEFS +=-I$(LOCALBASE)/include -I$(LOCALBASE)/pgsql/include \
 	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
 endif
 
 
 #DEFS += -DPG_TEST
 #DEFS += -DPG_TEST