webmcp
changeset 411:02a53308f008
Updated Makefile.options to use pg_config binary and included /usr/include/lua5.2 (for Debian)
author | jbe |
---|---|
date | Thu Jan 07 17:44:32 2016 +0100 (2016-01-07) |
parents | 92406e7b25cf |
children | 7d43be9afa56 |
files | Makefile.options |
line diff
1.1 --- a/Makefile.options Thu Jan 07 01:44:38 2016 +0100 1.2 +++ b/Makefile.options Thu Jan 07 17:44:32 2016 +0100 1.3 @@ -14,13 +14,13 @@ 1.4 # C compiler flags 1.5 # TODO: check alternatives to -D_GNU_SOURCE -fPIC 1.6 # using libtool? 1.7 -CFLAGS = -O2 -D_GNU_SOURCE -fPIC -Wall -I /usr/include -I /usr/local/include -I /usr/local/include/lua52 1.8 +CFLAGS = -O2 -D_GNU_SOURCE -fPIC -Wall -I /usr/include -I /usr/local/include -I /usr/include/lua5.2 -I /usr/local/include/lua52 1.9 1.10 # additional C compiler flags for parts which depend on PostgreSQL 1.11 -CFLAGS_PGSQL = -I /usr/local/include/postgresql -I /usr/local/include/postgresql/server 1.12 +CFLAGS_PGSQL = -I `pg_config --includedir` -I `pg_config --pkgincludedir` -I `pg_config --includedir-server` 1.13 1.14 # linker flags 1.15 LDFLAGS = -shared -L /usr/lib -L /usr/local/lib 1.16 1.17 # additional linker flags for parts which depend on PostgreSQL 1.18 -LDFLAGS_PGSQL = -L /usr/local/lib/postgresql -rpath /usr/local/lib/postgresql 1.19 +LDFLAGS_PGSQL = -L `pg_config --libdir` -rpath `pg_config --libdir`