mirror of
https://github.com/postgres/postgres.git
synced 2025-07-30 11:03:19 +03:00
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.
This commit is contained 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
|
||||
|
||||
|
Reference in New Issue
Block a user