[postgis-devel] Death to PGXS

Stephen Woodbridge woodbri at swoodbridge.com
Thu Dec 4 13:50:30 PST 2014


Very timely! as I'm sitting here banging my head on my desk trying to 
use PGXS to build a VRP extension.

-Steve

On 12/4/2014 4:20 PM, Paul Ramsey wrote:
> I’m somewhat at a loss as to what PGXS is buying us anymore. We can get
> all the proper install locations and paths and so on directly from
> pg_config. Using PGXS means we inherit from the PostgreSQL build
> sometimes complete annoying build stuff, like flags we don’t want (or
> lack of flags we *do* want, like say debugging or profiling flags).
>
> More terribly, I found a postgresql93 package on freebsd that was
> compiled in an environment apparently without perl, so PGXS defines
> $(PERL) as "/bin/sh
> /usr/local/lib/postgresql/pgxs/src/makefiles/../../config/missing”,
> which doesn’t really help our build at all.
>
> Similarly, and also terribly, I found the postgresql package on Solaris
> from OpenCSW is built with $(CC) defined as "/opt/solarisstudion/bin/cc”
> or somesuch, suffice to say it was a compiler I did not have ready
> access to without going through a big manual register, donate kidney,
> install process.
>
> Why can’t we drop PGXS and start controlling our own build/install
> destiny again? As long as we listen carefully to what pg_config is
> telling us, it should all work fine, no?
>
> P.
>
>
> --
> Paul Ramsey
> http://cleverelephant.ca
> http://postgis.net
>
>
> _______________________________________________
> postgis-devel mailing list
> postgis-devel at lists.osgeo.org
> http://lists.osgeo.org/cgi-bin/mailman/listinfo/postgis-devel
>




More information about the postgis-devel mailing list