Skip to content

Commit ecb156d

Browse files
committed
If we don't have shared libraries, we don't have conversions. Make
conversion_create.sql be empty (except for a helpful comment) in this case. Allows initdb to succeed with --disable-shared.
1 parent a4f8f12 commit ecb156d

File tree

1 file changed

+5
-1
lines changed
  • src/backend/utils/mb/conversion_procs

1 file changed

+5
-1
lines changed

src/backend/utils/mb/conversion_procs/Makefile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# Makefile for utils/mb/conversion_procs
55
#
66
# IDENTIFICATION
7-
# $PostgreSQL: pgsql/src/backend/utils/mb/conversion_procs/Makefile,v 1.10 2003/11/29 19:52:02 pgsql Exp $
7+
# $PostgreSQL: pgsql/src/backend/utils/mb/conversion_procs/Makefile,v 1.11 2004/01/21 19:22:19 tgl Exp $
88
#
99
#-------------------------------------------------------------------------
1010

@@ -147,6 +147,7 @@ all: $(SQLSCRIPT)
147147
@for dir in $(DIRS); do $(MAKE) -C $$dir $@ || exit; done
148148

149149
$(SQLSCRIPT): Makefile
150+
ifeq ($(enable_shared), yes)
150151
@set $(CONVERSIONS) ; \
151152
while [ "$$#" -gt 0 ] ; \
152153
do \
@@ -160,6 +161,9 @@ $(SQLSCRIPT): Makefile
160161
echo "DROP CONVERSION pg_catalog.$$name;"; \
161162
echo "CREATE DEFAULT CONVERSION pg_catalog.$$name FOR '$$se' TO '$$de' FROM $$func;"; \
162163
done > $@
164+
else
165+
echo "-- No conversion support, for lack of shared library support" > $@
166+
endif
163167

164168
$(REGRESSION_SCRIPT): Makefile
165169
@cp regress_prolog $@; \

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy