From 218b4e8dd86016f82c3a71dec9d339240e866505 Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Thu, 11 Dec 2008 07:34:09 +0000 Subject: Append major version number and for libraries soname major version number to the gettext domain name, to simplify parallel installations. Also, rename set_text_domain() to pg_bindtextdomain(), because that is what it does. --- src/Makefile.shlib | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/Makefile.shlib') diff --git a/src/Makefile.shlib b/src/Makefile.shlib index f6136a7a87..37a99dbf95 100644 --- a/src/Makefile.shlib +++ b/src/Makefile.shlib @@ -6,7 +6,7 @@ # Copyright (c) 1998, Regents of the University of California # # IDENTIFICATION -# $PostgreSQL: pgsql/src/Makefile.shlib,v 1.118 2008/11/24 11:59:37 petere Exp $ +# $PostgreSQL: pgsql/src/Makefile.shlib,v 1.119 2008/12/11 07:34:07 petere Exp $ # #------------------------------------------------------------------------- @@ -115,6 +115,10 @@ endif # Try to keep the sections in some kind of order, folks... override CFLAGS += $(CFLAGS_SL) +ifdef SO_MAJOR_VERSION +# libraries ought to use this to refer to versioned gettext domain names +override CPPFLAGS += -DSO_MAJOR_VERSION=$(SO_MAJOR_VERSION) +endif ifeq ($(PORTNAME), aix) ifdef SO_MAJOR_VERSION -- cgit v1.2.3