> > The patch adds missing the "libpgport.a" file to the installation under
> > "install-all-headers". It is needed by some contribs. I install the
> > library in "pkglibdir", but I was wondering whether it should be "libdir"?
Please find attached a small patch against current CVS head that fixes
pgport library installation so that it goes to libdir instead of
pkglibdir. It works for me.
Fabien Coelho
# -*-makefile-*-
-# $PostgreSQL: pgsql/src/Makefile.global.in,v 1.193 2004/08/20 20:13:10 momjian Exp $
+# $PostgreSQL: pgsql/src/Makefile.global.in,v 1.194 2004/08/28 22:55:06 momjian Exp $
#------------------------------------------------------------------------------
# All PostgreSQL makefiles include this file and use the variables it sets,
LIBS := -lpgport $(LIBS)
ifdef PGXS
# where libpgport.a is installed
-LDFLAGS := -L$(pkglibdir) $(LDFLAGS)
+LDFLAGS := -L$(libdir) $(LDFLAGS)
else
LDFLAGS := -L$(top_builddir)/src/port $(LDFLAGS)
endif
# with broken/missing library files.
# IDENTIFICATION
-# $PostgreSQL: pgsql/src/port/Makefile,v 1.17 2004/08/20 20:13:10 momjian Exp $
+# $PostgreSQL: pgsql/src/port/Makefile,v 1.18 2004/08/28 22:55:06 momjian Exp $
#
#-------------------------------------------------------------------------
# libpgport is needed by some contrib
install-all-headers:
- $(INSTALL_STLIB) libpgport.a $(DESTDIR)$(pkglibdir)
+ $(INSTALL_STLIB) libpgport.a $(DESTDIR)$(libdir)
uninstall:
- $(RM) $(DESTDIR)$(pkglibdir)/libpgport.a
+ $(RM) $(DESTDIR)$(libdir)/libpgport.a
libpgport.a: $(LIBOBJS)
$(AR) $(AROPT) $@ $^