# HG changeset patch # User jbe # Date 1452185072 -3600 # Node ID 02a53308f008011387a26f20da8e0986457f3e86 # Parent 92406e7b25cff6f1e692078bc3bc9ee9e2f8c0c9 Updated Makefile.options to use pg_config binary and included /usr/include/lua5.2 (for Debian) diff -r 92406e7b25cf -r 02a53308f008 Makefile.options --- a/Makefile.options Thu Jan 07 01:44:38 2016 +0100 +++ b/Makefile.options Thu Jan 07 17:44:32 2016 +0100 @@ -14,13 +14,13 @@ # C compiler flags # TODO: check alternatives to -D_GNU_SOURCE -fPIC # using libtool? -CFLAGS = -O2 -D_GNU_SOURCE -fPIC -Wall -I /usr/include -I /usr/local/include -I /usr/local/include/lua52 +CFLAGS = -O2 -D_GNU_SOURCE -fPIC -Wall -I /usr/include -I /usr/local/include -I /usr/include/lua5.2 -I /usr/local/include/lua52 # additional C compiler flags for parts which depend on PostgreSQL -CFLAGS_PGSQL = -I /usr/local/include/postgresql -I /usr/local/include/postgresql/server +CFLAGS_PGSQL = -I `pg_config --includedir` -I `pg_config --pkgincludedir` -I `pg_config --includedir-server` # linker flags LDFLAGS = -shared -L /usr/lib -L /usr/local/lib # additional linker flags for parts which depend on PostgreSQL -LDFLAGS_PGSQL = -L /usr/local/lib/postgresql -rpath /usr/local/lib/postgresql +LDFLAGS_PGSQL = -L `pg_config --libdir` -rpath `pg_config --libdir`