[postgis-users] Problem compiling PostGIS2.0 with GEOS 1.3.3+
Sandro Santilli
strk at keybit.net
Tue Jun 26 05:41:43 PDT 2012
Jan, please file a ticket for this or it'll get lost in oblivion.
--strk;
On Mon, Jun 25, 2012 at 01:07:08PM +0200, Jan Hartmann wrote:
>
> On 06/25/2012 11:32 AM, Sandro Santilli wrote:
> >
> >Autotools do something like this:
> >
> >DEFAULT_INCLUDES = -I. -I$(top_builddir)/include -I$(top_builddir)/include/geos
> >CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
> > $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS)
> >
> >Where DEFAULT_INCLUDES is automatically generated and $(CPPFLAGS)
> >and $(CXXFLAGS) are the ones you eventually override.
> >
> >In PostGIS we don't have this double definition so it won't work:
> >
> > $(LIBTOOL) --mode=compile $(CC) $(CFLAGS) -c -o $@ $<
> >
> >I guess we could add a $(DEFAULT_INCLUDES) right before the CFLAGS.
> >Then you could use:
> >
> > make CFLAGS=...
> >
> >Note that "CFLAGS=... make" has no effect on either PostGIS or GEOS
> >(autotools-based) for me.
> >
> >
> No, it is a configure problem. Sorry, I didn't explain it right. The
> command is "CFLAGS=... LDFLAGS=... configure". After that, all
> following "makes" include those paths before all system generated
> paths. The problem arises when in an earlier path there is an older
> version of a library or header file. I don't see a simple solution.
>
> Jan
> _______________________________________________
> postgis-users mailing list
> postgis-users at postgis.refractions.net
> http://postgis.refractions.net/mailman/listinfo/postgis-users
More information about the postgis-users
mailing list