summaryrefslogtreecommitdiff
path: root/lang/python
diff options
context:
space:
mode:
authoradrianp <adrianp>2004-12-28 22:48:11 +0000
committeradrianp <adrianp>2004-12-28 22:48:11 +0000
commit7dcd4a22cf2e1b02602fc63f944c4bb4503c9ea8 (patch)
tree4f5d6c31de6e259ee85e4121f633de76fb83797f /lang/python
parent0243d7736bd3e27249bd010df1e6386ae3b39e7f (diff)
downloadpkgsrc-7dcd4a22cf2e1b02602fc63f944c4bb4503c9ea8.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')
-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