mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-02-05 19:09:58 +08:00
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.
This commit is contained in:
parent
a4f8f124b7
commit
ecb156d484
@ -4,7 +4,7 @@
|
||||
# Makefile for utils/mb/conversion_procs
|
||||
#
|
||||
# IDENTIFICATION
|
||||
# $PostgreSQL: pgsql/src/backend/utils/mb/conversion_procs/Makefile,v 1.10 2003/11/29 19:52:02 pgsql Exp $
|
||||
# $PostgreSQL: pgsql/src/backend/utils/mb/conversion_procs/Makefile,v 1.11 2004/01/21 19:22:19 tgl Exp $
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
|
||||
@ -147,6 +147,7 @@ all: $(SQLSCRIPT)
|
||||
@for dir in $(DIRS); do $(MAKE) -C $$dir $@ || exit; done
|
||||
|
||||
$(SQLSCRIPT): Makefile
|
||||
ifeq ($(enable_shared), yes)
|
||||
@set $(CONVERSIONS) ; \
|
||||
while [ "$$#" -gt 0 ] ; \
|
||||
do \
|
||||
@ -160,6 +161,9 @@ $(SQLSCRIPT): Makefile
|
||||
echo "DROP CONVERSION pg_catalog.$$name;"; \
|
||||
echo "CREATE DEFAULT CONVERSION pg_catalog.$$name FOR '$$se' TO '$$de' FROM $$func;"; \
|
||||
done > $@
|
||||
else
|
||||
echo "-- No conversion support, for lack of shared library support" > $@
|
||||
endif
|
||||
|
||||
$(REGRESSION_SCRIPT): Makefile
|
||||
@cp regress_prolog $@; \
|
||||
|
Loading…
Reference in New Issue
Block a user