From: Tom Hughes Date: Thu, 9 Apr 2009 14:47:41 +0000 (+0000) Subject: Use pg_config to find postgres. X-Git-Tag: live~7601^2~29 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/ea7938dd89f6f3f4e7816dc08fcf29aa70bf867f?hp=63474e1f50d3d2678e17878ee6d689a025dda8ad Use pg_config to find postgres. --- diff --git a/db/functions/Makefile b/db/functions/Makefile index 1bdddce71..9158b4959 100644 --- a/db/functions/Makefile +++ b/db/functions/Makefile @@ -1,7 +1,5 @@ QTDIR=../../lib/quad_tile -PGSQLINC=/usr/include/postgresql/8.3/server/ - OS=$(shell uname -s) ifeq (${OS},Darwin) LDFLAGS=-bundle @@ -27,4 +25,4 @@ maptile-mysql.o: maptile.c cc `mysql_config --include` -fPIC -O3 -DUSE_MYSQL -c -o maptile-mysql.o maptile.c maptile-pgsql.o: maptile.c - cc -I${PGSQLINC} -O3 -fPIC -DUSE_PGSQL -c -o maptile-pgsql.o maptile.c \ No newline at end of file + cc -I `pg_config --includedir-server` -O3 -fPIC -DUSE_PGSQL -c -o maptile-pgsql.o maptile.c