summaryrefslogtreecommitdiff
path: root/cross
diff options
context:
space:
mode:
authoragc <agc@pkgsrc.org>2001-03-13 11:30:28 +0000
committeragc <agc@pkgsrc.org>2001-03-13 11:30:28 +0000
commitecc1cfcf5c232565c9d67a68c7988f0b08592ce5 (patch)
tree501b11fe1a174e12c491448c285700856eb8ced7 /cross
parent6da4bb568e3ebad0b4189c4a00c69eda05397036 (diff)
downloadpkgsrc-ecc1cfcf5c232565c9d67a68c7988f0b08592ce5.tar.gz
Add a check for cwd in the $PATH (if "." is present, configuration step
will fail). Addresses PR 10988
Diffstat (limited to 'cross')
-rw-r--r--cross/binutils/Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/cross/binutils/Makefile b/cross/binutils/Makefile
index 72a4b839ff5..0e83fea0c4e 100644
--- a/cross/binutils/Makefile
+++ b/cross/binutils/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.24 2001/02/28 10:47:47 wiz Exp $
+# $NetBSD: Makefile,v 1.25 2001/03/13 11:30:28 agc Exp $
#
# GNU binutils configured to hold `as many targets as the cross system is
# capable of using'. Configures and builds everything except gas, which
@@ -48,6 +48,12 @@ post-patch:
${FIND} ${WRKSRC} -name configure -print | xargs ${TOUCH}
${FIND} ${WRKSRC} -name Makefile.in -print | xargs ${TOUCH}
+# check that path does not contain cwd
+pre-configure:
+ @if ${ECHO} ${PATH} | ${EGREP} '(^\.?:|:\.?$$|:\.?:)'; then \
+ ${ECHO} "Warning - \".\" is present in your path \"${PATH}\". Configuration step will fail"; \
+ fi
+
# we use MKDIR, not INSTALL_PROGRAM_DIR, deliberately.
do-install:
${MKDIR} ${BINDIR} ${PREFIX}/lib/ldscripts ${PREFIX}/include