]> granicus.if.org Git - postgis/commitdiff
Ensure "make check" uses configured PostgreSQL target bins under regress too
authorSandro Santilli <strk@kbt.io>
Wed, 13 Mar 2019 15:10:30 +0000 (15:10 +0000)
committerSandro Santilli <strk@kbt.io>
Wed, 13 Mar 2019 15:10:30 +0000 (15:10 +0000)
References #4349

git-svn-id: http://svn.osgeo.org/postgis/trunk@17340 b70326c6-7e19-0410-871a-916f4a2858ee

regress/Makefile.in

index 6f2d6841dfd3600df28c469c8f19a39901568896..b65d4bc852d2536cb4ad6475924b479938a30604 100644 (file)
@@ -22,6 +22,17 @@ else
 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