From c27f428e1561d3b63955b7f26c4aca2aaa0c6c5e Mon Sep 17 00:00:00 2001 From: adrianp Date: Tue, 28 Dec 2004 22:48:11 +0000 Subject: - 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@ --- lang/python/extension.mk | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'lang/python') 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 -- cgit v1.2.3