Source
--- postgis/Makefile.in.orig 2012-09-05 19:20:48.000000000 +0400
+++ postgis/Makefile.in 2012-09-05 19:21:13.000000000 +0400
# to an existing liblwgeom.so in the PostgreSQL $libdir supplied by an
# older version of PostGIS, rather than with the static liblwgeom.a
# supplied with newer versions of PostGIS
-PG_CPPFLAGS+=@CPPFLAGS@ -I../liblwgeom
+PG_CPPFLAGS+=-I../liblwgeom @CPPFLAGS@
SHLIB_LINK+=@SHLIB_LINK@ ../liblwgeom/liblwgeom.a
# Extra files to remove during 'make clean'