]> granicus.if.org Git - postgresql/commitdiff
Fix quoting in the add_to_path Makefile macro.
authorNoah Misch <noah@leadboat.com>
Mon, 13 Oct 2014 03:33:37 +0000 (23:33 -0400)
committerNoah Misch <noah@leadboat.com>
Mon, 13 Oct 2014 03:33:57 +0000 (23:33 -0400)
The previous quoting caused "make -C src/bin check" to ignore, rather
than add to, any LD_LIBRARY_PATH content from the environment.
Back-patch to 9.4, where the macro was introduced.

src/Makefile.global.in

index a7564e424f7a3122328f0e80060d6276d6660ded..7b6ccd5f9cb5d6b55eb2a7be6aee5f6b28a26a66 100644 (file)
@@ -302,7 +302,7 @@ PROVE_FLAGS = --verbose
 
 # prepend to path if already set, else just set it
 define add_to_path
-$(1)='$(if $($(1)),$(2):$$$(1),$(2))'
+$(1)="$(if $($(1)),$(2):$$$(1),$(2))"
 endef
 
 # platform-specific environment variable to set shared library path