summaryrefslogtreecommitdiff
path: root/lang/python21/Makefile
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2002-04-09 04:14:39 +0000
committerjlam <jlam@pkgsrc.org>2002-04-09 04:14:39 +0000
commit5ec676a042efc2d29390f0f5b06037b21e57f456 (patch)
tree6faa2b77a7bfa2ab416560ed8ef935ef9fe14c0e /lang/python21/Makefile
parent57ea52bf0a64ceaa0878d9566fa7792e30dd529a (diff)
downloadpkgsrc-5ec676a042efc2d29390f0f5b06037b21e57f456.tar.gz
Teach the extension building process about buildlink, and allow passing
LDFLAGS to the linker command when linking a python extension. This lets us pass the right flags to correctly find libraries required for certain extensions, e.g. zlib.so. Also explicitly comment out a few extensions that aren't being built and should never be.
Diffstat (limited to 'lang/python21/Makefile')
-rw-r--r--lang/python21/Makefile13
1 files changed, 11 insertions, 2 deletions
diff --git a/lang/python21/Makefile b/lang/python21/Makefile
index f4d29a935e2..d8aa82af214 100644
--- a/lang/python21/Makefile
+++ b/lang/python21/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.4 2002/01/22 13:05:03 drochner Exp $
+# $NetBSD: Makefile,v 1.5 2002/04/09 04:14:39 jlam Exp $
#
DISTNAME= Python-2.1.2
@@ -11,7 +11,8 @@ MAINTAINER= packages@netbsd.org
HOMEPAGE= http://www.python.org/
COMMENT= Interpreted, interactive, object-oriented programming language
-GNU_CONFIGURE= YES
+USE_BUILDLINK_ONLY= YES
+GNU_CONFIGURE= YES
CONFIGURE_ARGS+= --without-threads
INSTALL_TARGET= altinstall
@@ -19,4 +20,12 @@ INSTALL_TARGET= altinstall
post-extract:
${MV} ${WRKSRC}/Tools/scripts/pydoc ${WRKSRC}/Tools/scripts/pydoc2.1
+.include "../../devel/zlib/buildlink.mk"
.include "../../mk/bsd.pkg.mk"
+
+# This comes after bsd.pkg.mk so that the LDFLAGS here overrides the one
+# set earlier in the environment (last definition wins).
+#
+.if ${OBJECT_FMT} == "a.out"
+MAKE_ENV+= LDFLAGS="${LDFLAGS:S/-Wl,//}"
+.endif