summaryrefslogtreecommitdiff
path: root/lang/python22/Makefile
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2002-04-09 04:33:18 +0000
committerjlam <jlam@pkgsrc.org>2002-04-09 04:33:18 +0000
commit5ca0c61cd36db4835fd19b4ef6a0f8fca4418408 (patch)
treeead31fd10f7e32cdb7938d919568467470201494 /lang/python22/Makefile
parent2b4e817734bbbb5a58dbd896b3c34188696fa653 (diff)
downloadpkgsrc-5ca0c61cd36db4835fd19b4ef6a0f8fca4418408.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.
Diffstat (limited to 'lang/python22/Makefile')
-rw-r--r--lang/python22/Makefile13
1 files changed, 11 insertions, 2 deletions
diff --git a/lang/python22/Makefile b/lang/python22/Makefile
index 0fcca37db74..77023e04b23 100644
--- a/lang/python22/Makefile
+++ b/lang/python22/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1.1.1 2002/01/15 17:11:03 drochner Exp $
+# $NetBSD: Makefile,v 1.2 2002/04/09 04:33:18 jlam Exp $
#
DISTNAME= Python-2.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.2
+.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