This is a trivial patch that corrects the postgres Makefile detection for the include, libsdir and libs cflags. This patch uses the standard way to detect the location of these files and cflags. Please test and report back.
As a side note.. I haven't delved too deeply into the support for pg, but if anyone is having any issues please send me an email and maybe we can figure out a solution. Lastly.. being a lazy programmer as I am and having not looked at the code yet.. Would any 8.x+ specific code be rejected? ( I'd of course not change the default behaviour.) Cheers, Christopher irc: codestr0m
Index: modules/postgres/Makefile =================================================================== --- modules/postgres/Makefile (revision 2054) +++ modules/postgres/Makefile (working copy) @@ -7,10 +7,8 @@ NAME=postgres.so # 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 \ - -lpq +DEFS +=-I$(shell pg_config --includedir) +LIBS +=-L$(shell pg_config --libdir) $(shell pg_config --libs) + include ../../Makefile.modules
_______________________________________________ Devel mailing list Devel@openser.org http://openser.org/cgi-bin/mailman/listinfo/devel