summaryrefslogtreecommitdiff
path: root/lang/python/extension.mk
diff options
context:
space:
mode:
authoradrianp <adrianp@pkgsrc.org>2004-12-28 22:48:11 +0000
committeradrianp <adrianp@pkgsrc.org>2004-12-28 22:48:11 +0000
commitc27f428e1561d3b63955b7f26c4aca2aaa0c6c5e (patch)
tree4f5d6c31de6e259ee85e4121f633de76fb83797f /lang/python/extension.mk
parent50e61f2766fd23a24e2303e58694e066e915302d (diff)
downloadpkgsrc-c27f428e1561d3b63955b7f26c4aca2aaa0c6c5e.tar.gz
- Fix an error where -lpython does not get defined on Darwin and causes
the compile of python modules to fail. - Fixes PR# 28605 - Ok'ed recht@
Diffstat (limited to 'lang/python/extension.mk')
-rw-r--r--lang/python/extension.mk6
1 files changed, 5 insertions, 1 deletions
diff --git a/lang/python/extension.mk b/lang/python/extension.mk
index d8ed0eaebef..3084ceec6cf 100644
--- a/lang/python/extension.mk
+++ b/lang/python/extension.mk
@@ -1,4 +1,4 @@
-# $NetBSD: extension.mk,v 1.11 2004/06/12 21:18:31 darcy Exp $
+# $NetBSD: extension.mk,v 1.12 2004/12/28 22:48:11 adrianp Exp $
# derive a python version from the package name if possible
# optionally handled quoted package names
@@ -35,3 +35,7 @@ do-install:
.if defined(PY_PATCHPLIST)
PLIST_SUBST+= PYINC=${PYINC} PYSITELIB=${PYSITELIB}
.endif
+
+.if ${OPSYS} == "Darwin"
+LDFLAGS+= -lpython
+.endif