From 4ef6a2c78b5e14f124edd4a5e79ef7bd7798e490 Mon Sep 17 00:00:00 2001
From: Andrew Dunstan <andrew@dunslane.net>
Date: Sun, 13 Jan 2019 15:59:35 -0500
Subject: [PATCH] Make DLSUFFIX easily discoverable by build scripts

This will enable things like the buildfarm client to discover more
reliably if certain libraries have been installed.

Discussion: https://postgr.es/m/859e7c91-7ef4-d4b4-2ca2-8046e0cbee09@2ndQuadrant.com

Backpatch to all live branches.
---
 src/Makefile.global.in | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/Makefile.global.in b/src/Makefile.global.in
index be22885f400..1e5374683fa 100644
--- a/src/Makefile.global.in
+++ b/src/Makefile.global.in
@@ -456,6 +456,11 @@ ifeq ($(enable_rpath), yes)
 LDFLAGS += $(rpath)
 endif
 
+# Show the DLSUFFIX to build scripts (e.g. buildfarm)
+.PHONY: show_dl_suffix
+show_dl_suffix
+	@echo $(DLSUFFIX)
+
 
 ##########################################################################
 #
-- 
GitLab