[postgis-tickets] r17340 - Ensure "make check" uses configured PostgreSQL target bins under regress too

Sandro Santilli strk at kbt.io
Wed Mar 13 08:10:31 PDT 2019


Author: strk
Date: 2019-03-13 08:10:30 -0700 (Wed, 13 Mar 2019)
New Revision: 17340

Modified:
   trunk/regress/Makefile.in
Log:
Ensure "make check" uses configured PostgreSQL target bins under regress too

References #4349

Modified: trunk/regress/Makefile.in
===================================================================
--- trunk/regress/Makefile.in	2019-03-13 07:56:33 UTC (rev 17339)
+++ trunk/regress/Makefile.in	2019-03-13 15:10:30 UTC (rev 17340)
@@ -22,6 +22,17 @@
 endif
 REGRESS_INSTALLDIR=$(srcdir)/00-regress-install
 
+# MingW hack: rather than use PGSQL_BINDIR directly, we change to the directory and
+# then use "pwd" to return the path. This ensures that the returned path is in MSYS
+# format, otherwise colons in drive letters will break PATH.
+PGSQL_BINDIR=$(shell cd "@PGSQL_BINDIR@" && pwd)
+
+#
+# Put path from pg_config into front of search path
+#
+PATH := $(PGSQL_BINDIR):$(PATH)
+export PATH
+
 all install uninstall:
 
 check: staged-install



More information about the postgis-tickets mailing list