diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2004-09-24 20:08:42 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2004-09-24 20:08:42 +0000 |
commit | 26b5d5317bdbe8574abc00acb68613ff7e194e3a (patch) | |
tree | 9fd4da02ad8b59cdb4dd9bdb14a9487b0d9cc735 | |
parent | b120485f9cf55e96e8b945df12303c9ea8ef94b7 (diff) | |
download | postgresql-26b5d5317bdbe8574abc00acb68613ff7e194e3a.tar.gz postgresql-26b5d5317bdbe8574abc00acb68613ff7e194e3a.zip |
Persuade plpython to build on OS X.
-rw-r--r-- | src/pl/plpython/Makefile | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/pl/plpython/Makefile b/src/pl/plpython/Makefile index 6acf3a6f4d4..4bcc9d88a06 100644 --- a/src/pl/plpython/Makefile +++ b/src/pl/plpython/Makefile @@ -1,4 +1,4 @@ -# $PostgreSQL: pgsql/src/pl/plpython/Makefile,v 1.13 2004/01/21 19:04:11 tgl Exp $ +# $PostgreSQL: pgsql/src/pl/plpython/Makefile,v 1.14 2004/09/24 20:08:42 tgl Exp $ subdir = src/pl/plpython top_builddir = ../../.. @@ -12,6 +12,12 @@ ifneq (,$(wildcard $(python_configdir)/libpython*$(DLSUFFIX)*)) shared_libpython = yes endif +# Darwin (OS X) has its own ideas about how to do this. +ifeq ($(PORTNAME), darwin) +shared_libpython = yes +override python_libspec := -framework Python +endif + # If we don't have a shared library and the platform doesn't allow it # to work without, we have to skip it. ifneq (,$(findstring yes, $(shared_libpython)$(allow_nonpic_in_shlib))) |