Skip to content

Commit a4f8f12

Browse files
committed
Fix bit-rot in support for building with --disable-shared. This patch
gets us past 'make install', but initdb still fails for lack of conversion libraries ...
1 parent 1ef7c5c commit a4f8f12

File tree

4 files changed

+24
-4
lines changed

4 files changed

+24
-4
lines changed

src/backend/utils/mb/conversion_procs/proc.mk

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ all: all-shared-lib
1212
include $(top_srcdir)/src/Makefile.shlib
1313

1414
install: all
15+
ifeq ($(enable_shared), yes)
1516
$(INSTALL_SHLIB) $(shlib) $(DESTDIR)$(pkglibdir)/$(NAME)$(DLSUFFIX)
17+
endif
1618

1719
uninstall:
1820
rm -f $(DESTDIR)$(pkglibdir)/$(NAME)$(DLSUFFIX)

src/pl/plperl/GNUmakefile

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Makefile for PL/Perl
2-
# $PostgreSQL: pgsql/src/pl/plperl/GNUmakefile,v 1.11 2003/11/29 19:52:12 pgsql Exp $
2+
# $PostgreSQL: pgsql/src/pl/plperl/GNUmakefile,v 1.12 2004/01/21 19:04:11 tgl Exp $
33

44
subdir = src/pl/plperl
55
top_builddir = ../../..
@@ -37,7 +37,13 @@ SPI.c: SPI.xs
3737
$(PERL) $(perl_privlibexp)/ExtUtils/xsubpp -typemap $(perl_privlibexp)/ExtUtils/typemap $< >$@
3838

3939
install: all installdirs
40+
ifeq ($(enable_shared), yes)
4041
$(INSTALL_SHLIB) $(shlib) $(DESTDIR)$(pkglibdir)/plperl$(DLSUFFIX)
42+
else
43+
@echo "*****"; \
44+
echo "* PL/Perl was not installed due to lack of shared library support."; \
45+
echo "*****"
46+
endif
4147

4248
installdirs:
4349
$(mkinstalldirs) $(DESTDIR)$(pkglibdir)

src/pl/plpython/Makefile

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# $PostgreSQL: pgsql/src/pl/plpython/Makefile,v 1.12 2003/11/29 19:52:12 pgsql Exp $
1+
# $PostgreSQL: pgsql/src/pl/plpython/Makefile,v 1.13 2004/01/21 19:04:11 tgl Exp $
22

33
subdir = src/pl/plpython
44
top_builddir = ../../..
@@ -32,7 +32,13 @@ include $(top_srcdir)/src/Makefile.shlib
3232
all: all-lib
3333

3434
install: all installdirs
35+
ifeq ($(enable_shared), yes)
3536
$(INSTALL_SHLIB) $(shlib) $(DESTDIR)$(pkglibdir)/plpython$(DLSUFFIX)
37+
else
38+
@echo "*****"; \
39+
echo "* PL/Python was not installed due to lack of shared library support."; \
40+
echo "*****"
41+
endif
3642

3743
installdirs:
3844
$(mkinstalldirs) $(DESTDIR)$(pkglibdir)

src/pl/tcl/Makefile

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#
33
# Makefile for the pltcl shared object
44
#
5-
# $PostgreSQL: pgsql/src/pl/tcl/Makefile,v 1.41 2003/11/29 19:52:13 pgsql Exp $
5+
# $PostgreSQL: pgsql/src/pl/tcl/Makefile,v 1.42 2004/01/21 19:04:11 tgl Exp $
66
#
77
#-------------------------------------------------------------------------
88

@@ -44,7 +44,13 @@ all: all-lib
4444
$(MAKE) -C modules $@
4545

4646
install: all installdirs
47+
ifeq ($(enable_shared), yes)
4748
$(INSTALL_SHLIB) $(shlib) $(DESTDIR)$(pkglibdir)/$(NAME)$(DLSUFFIX)
49+
else
50+
@echo "*****"; \
51+
echo "* PL/Tcl was not installed due to lack of shared library support."; \
52+
echo "*****"
53+
endif
4854
$(MAKE) -C modules $@
4955

5056
installdirs:
@@ -60,7 +66,7 @@ else # TCL_SHARED_BUILD = 0
6066
# Provide dummy targets for the case where we can't build the shared library.
6167
all:
6268
@echo "*****"; \
63-
echo "* Cannot build pltcl because Tcl is not a shared library; skipping it."; \
69+
echo "* Cannot build PL/Tcl because Tcl is not a shared library; skipping it."; \
6470
echo "*****"
6571

6672
endif # TCL_SHARED_BUILD = 0

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