From 9df30869725a9cbf5012f5bcc5afa0c7aed46152 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Tue, 13 Jul 2004 00:06:46 +0000 Subject: Cause libpq and ecpg libraries to be built as proper shared libraries (.dylib format) on Mac OS X, while not messing up loadable modules for the backend (which are the same kind of animal as a shared library on every other platform, but not here). Also get the naming convention to match OS X practice, viz libFOO.version.so not libFOO.so.version. In support of that last, refactor code in Makefile.shlib to make it easier to have platform-specific shlib naming conventions. This patch is loosely based on the Fink project's current postgresql.patch. Tested by yours truly on OS X 10.3.4; does anyone have 10.2.* to check it on? --- src/interfaces/libpq/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/interfaces/libpq/Makefile') diff --git a/src/interfaces/libpq/Makefile b/src/interfaces/libpq/Makefile index ed76a0d652..f77ecd4aca 100644 --- a/src/interfaces/libpq/Makefile +++ b/src/interfaces/libpq/Makefile @@ -4,7 +4,7 @@ # # Copyright (c) 1994, Regents of the University of California # -# $PostgreSQL: pgsql/src/interfaces/libpq/Makefile,v 1.111 2004/06/19 15:14:17 momjian Exp $ +# $PostgreSQL: pgsql/src/interfaces/libpq/Makefile,v 1.112 2004/07/13 00:06:44 tgl Exp $ # #------------------------------------------------------------------------- @@ -17,6 +17,7 @@ include $(top_builddir)/src/Makefile.global NAME= pq SO_MAJOR_VERSION= 3 SO_MINOR_VERSION= 2 +DLTYPE= library override CPPFLAGS := -I$(srcdir) $(CPPFLAGS) -I$(top_builddir)/src/port -DFRONTEND override CFLAGS += $(PTHREAD_CFLAGS) -- cgit v1.2.1