From e0c1d010637e00f9a8d7365bb351eddc0109456f Mon Sep 17 00:00:00 2001 From: agc Date: Mon, 3 Oct 2011 05:30:07 +0000 Subject: Use SUBST to convert the local function called pipe2() into trn_pip2(), so that it doesn't clash with a system symbol with the same name. --- news/trn/Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'news/trn/Makefile') diff --git a/news/trn/Makefile b/news/trn/Makefile index 1df9ad115f8..b1801a5e117 100644 --- a/news/trn/Makefile +++ b/news/trn/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.32 2010/03/13 05:46:55 obache Exp $ +# $NetBSD: Makefile,v 1.33 2011/10/03 05:30:07 agc Exp $ DISTNAME= trn-4.0-test76 PKGNAME= trn-4.76 @@ -76,4 +76,9 @@ post-install: @${LN} -s trn ${DESTDIR}${PREFIX}/bin/rn @${LN} -s trn.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/rn.1 +SUBST_CLASSES+= pipe2 +SUBST_STAGE.pipe2= pre-configure +SUBST_FILES.pipe2= filter.c +SUBST_SED.pipe2+= -e 's|pipe2|trn_pipe2|g' + .include "../../mk/bsd.pkg.mk" -- cgit v1.2.3