summaryrefslogtreecommitdiff
path: root/src/interfaces/libpgtcl
diff options
context:
space:
mode:
authorMarc G. Fournier <scrappy@hub.org>1998-04-27 14:55:46 +0000
committerMarc G. Fournier <scrappy@hub.org>1998-04-27 14:55:46 +0000
commit6d817475b243c0b220176b0ee0c631d0b33f97bd (patch)
tree0426256cc1f72c287c4daf14b202d615a4a14157 /src/interfaces/libpgtcl
parent1af6b56427fa5afbca88849c428bc872d60ad941 (diff)
From: Tom Lane <tgl@sss.pgh.pa.us>
HP-UX (all versions) requires shared libraries to have execute permission, and really needs them to be exactly mode 555 for performance reasons. The standard configure/install procedure installs libpq.sl as mode 644, which DOES NOT WORK. The attached patch modifies the makefiles to distinguish INSTL_LIB_OPTS (install mode for ordinary libraries) from INSTL_SHLIB_OPTS (mode for shared libs), and adds a test to configure to set INSTL_SHLIB_OPTS="-m 555" when on HP-UX.
Diffstat (limited to 'src/interfaces/libpgtcl')
-rw-r--r--src/interfaces/libpgtcl/Makefile.in11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/interfaces/libpgtcl/Makefile.in b/src/interfaces/libpgtcl/Makefile.in
index fec03746983..49c87ca3e86 100644
--- a/src/interfaces/libpgtcl/Makefile.in
+++ b/src/interfaces/libpgtcl/Makefile.in
@@ -7,7 +7,7 @@
#
#
# IDENTIFICATION
-# $Header: /cvsroot/pgsql/src/interfaces/libpgtcl/Attic/Makefile.in,v 1.12 1998/04/21 12:38:32 scrappy Exp $
+# $Header: /cvsroot/pgsql/src/interfaces/libpgtcl/Attic/Makefile.in,v 1.13 1998/04/27 14:54:50 scrappy Exp $
#
#-------------------------------------------------------------------------
@@ -66,6 +66,13 @@ ifeq ($(PORTNAME), univel)
CFLAGS += $(CFLAGS_SL)
endif
+ifeq ($(PORTNAME), hpux)
+ install-shlib-dep := install-shlib
+ shlib := libpq.sl
+ LDFLAGS_SL = -b
+ CFLAGS += $(CFLAGS_SL)
+endif
+
OBJS= pgtcl.o pgtclCmds.o pgtclId.o
@@ -98,7 +105,7 @@ install-libpgtcl: libpgtcl.a
$(INSTALL) $(INSTL_LIB_OPTS) libpgtcl.a $(LIBDIR)/libpgtcl.a
install-shlib: $(shlib)
- $(INSTALL) $(INSTL_LIB_OPTS) $(shlib) \
+ $(INSTALL) $(INSTL_SHLIB_OPTS) $(shlib) \
$(LIBDIR)/$(shlib)
ln -sf $(shlib) $(LIBDIR)/libpgtcl.so