Skip to content
Snippets Groups Projects
Commit 26b5d531 authored by Tom Lane's avatar Tom Lane
Browse files

Persuade plpython to build on OS X.

parent b120485f
Branches
Tags
No related merge requests found
# $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 subdir = src/pl/plpython
top_builddir = ../../.. top_builddir = ../../..
...@@ -12,6 +12,12 @@ ifneq (,$(wildcard $(python_configdir)/libpython*$(DLSUFFIX)*)) ...@@ -12,6 +12,12 @@ ifneq (,$(wildcard $(python_configdir)/libpython*$(DLSUFFIX)*))
shared_libpython = yes shared_libpython = yes
endif 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 # If we don't have a shared library and the platform doesn't allow it
# to work without, we have to skip it. # to work without, we have to skip it.
ifneq (,$(findstring yes, $(shared_libpython)$(allow_nonpic_in_shlib))) ifneq (,$(findstring yes, $(shared_libpython)$(allow_nonpic_in_shlib)))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment