summaryrefslogtreecommitdiff
path: root/lang/python21/Makefile
diff options
context:
space:
mode:
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