diff options
| author | Tom Lane <tgl@sss.pgh.pa.us> | 2004-07-13 00:06:46 +0000 |
|---|---|---|
| committer | Tom Lane <tgl@sss.pgh.pa.us> | 2004-07-13 00:06:46 +0000 |
| commit | 9df30869725a9cbf5012f5bcc5afa0c7aed46152 (patch) | |
| tree | 53192d9faa224004ec2385f3f483817220cf25a1 /src/interfaces | |
| parent | 8b6f76af46ad49bfcac3136361aa046183de3b2b (diff) | |
| download | postgresql-9df30869725a9cbf5012f5bcc5afa0c7aed46152.tar.gz | |
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?
Diffstat (limited to 'src/interfaces')
| -rw-r--r-- | src/interfaces/ecpg/compatlib/Makefile | 5 | ||||
| -rw-r--r-- | src/interfaces/ecpg/ecpglib/Makefile | 3 | ||||
| -rw-r--r-- | src/interfaces/ecpg/pgtypeslib/Makefile | 5 | ||||
| -rw-r--r-- | src/interfaces/libpq/Makefile | 3 |
4 files changed, 10 insertions, 6 deletions
diff --git a/src/interfaces/ecpg/compatlib/Makefile b/src/interfaces/ecpg/compatlib/Makefile index c490e1a2a7..0d797c1d87 100644 --- a/src/interfaces/ecpg/compatlib/Makefile +++ b/src/interfaces/ecpg/compatlib/Makefile @@ -1,10 +1,10 @@ #------------------------------------------------------------------------- # -# Makefile for ecpg library +# Makefile for ecpg compatibility library # # Copyright (c) 1994, Regents of the University of California # -# $PostgreSQL: pgsql/src/interfaces/ecpg/compatlib/Makefile,v 1.17 2004/04/30 04:14:05 momjian Exp $ +# $PostgreSQL: pgsql/src/interfaces/ecpg/compatlib/Makefile,v 1.18 2004/07/13 00:06:39 tgl Exp $ # #------------------------------------------------------------------------- @@ -15,6 +15,7 @@ include $(top_builddir)/src/Makefile.global NAME= ecpg_compat SO_MAJOR_VERSION= 1 SO_MINOR_VERSION= 1 +DLTYPE= library override CPPFLAGS := -I$(top_srcdir)/src/interfaces/ecpg/include -I$(libpq_srcdir) \ -I$(top_srcdir)/src/include/utils $(CPPFLAGS) diff --git a/src/interfaces/ecpg/ecpglib/Makefile b/src/interfaces/ecpg/ecpglib/Makefile index ab53ce962e..004bca7f74 100644 --- a/src/interfaces/ecpg/ecpglib/Makefile +++ b/src/interfaces/ecpg/ecpglib/Makefile @@ -4,7 +4,7 @@ # # Copyright (c) 1994, Regents of the University of California # -# $PostgreSQL: pgsql/src/interfaces/ecpg/ecpglib/Makefile,v 1.24 2004/05/25 21:20:44 momjian Exp $ +# $PostgreSQL: pgsql/src/interfaces/ecpg/ecpglib/Makefile,v 1.25 2004/07/13 00:06:41 tgl Exp $ # #------------------------------------------------------------------------- @@ -15,6 +15,7 @@ include $(top_builddir)/src/Makefile.global NAME= ecpg SO_MAJOR_VERSION= 4 SO_MINOR_VERSION= 2 +DLTYPE= library override CPPFLAGS := -DFRONTEND -I$(top_srcdir)/src/interfaces/ecpg/include \ -I$(libpq_srcdir) -I$(top_builddir)/src/port $(CPPFLAGS) diff --git a/src/interfaces/ecpg/pgtypeslib/Makefile b/src/interfaces/ecpg/pgtypeslib/Makefile index 2993018159..165b0346f7 100644 --- a/src/interfaces/ecpg/pgtypeslib/Makefile +++ b/src/interfaces/ecpg/pgtypeslib/Makefile @@ -1,10 +1,10 @@ #------------------------------------------------------------------------- # -# Makefile for ecpg library +# Makefile for ecpg pgtypes library # # Copyright (c) 1994, Regents of the University of California # -# $PostgreSQL: pgsql/src/interfaces/ecpg/pgtypeslib/Makefile,v 1.21 2004/05/26 17:24:07 tgl Exp $ +# $PostgreSQL: pgsql/src/interfaces/ecpg/pgtypeslib/Makefile,v 1.22 2004/07/13 00:06:43 tgl Exp $ # #------------------------------------------------------------------------- @@ -15,6 +15,7 @@ include $(top_builddir)/src/Makefile.global NAME= pgtypes SO_MAJOR_VERSION= 1 SO_MINOR_VERSION= 2 +DLTYPE= library override CPPFLAGS := -I$(top_srcdir)/src/interfaces/ecpg/include \ -I$(top_srcdir)/src/include/utils -I$(libpq_srcdir) $(CPPFLAGS) \ 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) |
