summaryrefslogtreecommitdiff
path: root/mk/compiler.mk
diff options
context:
space:
mode:
authorahoka <ahoka@pkgsrc.org>2008-10-20 18:33:50 +0000
committerahoka <ahoka@pkgsrc.org>2008-10-20 18:33:50 +0000
commit214839f8488c9b1e2d5be409da56003109f20bf6 (patch)
tree2330e8009184c45b840e87fffb9f7f61522ddc61 /mk/compiler.mk
parent1628985f7854c1eb7b28108503611208a285f00d (diff)
downloadpkgsrc-214839f8488c9b1e2d5be409da56003109f20bf6.tar.gz
Sanitise the error message of the fail-wrapper:
- Use PGKSRC-WARNING to note it's coming from pkgsrc and not always fatal. - Describe more precisely what's happening when you get this warning. Hopefuly this will stop the misundersanding of the error message I could see quite often amongst users.
Diffstat (limited to 'mk/compiler.mk')
-rw-r--r--mk/compiler.mk6
1 files changed, 3 insertions, 3 deletions
diff --git a/mk/compiler.mk b/mk/compiler.mk
index 96d8abc01af..48860ab47f4 100644
--- a/mk/compiler.mk
+++ b/mk/compiler.mk
@@ -1,4 +1,4 @@
-# $NetBSD: compiler.mk,v 1.66 2008/02/13 09:00:52 rillig Exp $
+# $NetBSD: compiler.mk,v 1.67 2008/10/20 18:33:50 ahoka Exp $
#
# This Makefile fragment implements handling for supported C/C++/Fortran
# compilers.
@@ -183,8 +183,8 @@ fail-wrapper: .USE
${ECHO} 'msg="*** Please consider adding $$lang to USE_LANGUAGES in the package Makefile."'; \
${ECHO} '${ECHO} "$$msg" >> $$wrapperlog'; \
${ECHO} '${ECHO} "$$msg" > ${WARNING_DIR}/${.TARGET:T}'; \
- ${ECHO} '${ECHO} "ERROR: To use this compiler, you have to add $$lang to" 1>&2'; \
- ${ECHO} '${ECHO} "ERROR: USE_LANGUAGES in the package Makefile." 1>&2'; \
+ ${ECHO} '${ECHO} "PKGSRC-WARNING: Something is trying to run the $$lang compiler," 1>&2'; \
+ ${ECHO} '${ECHO} "PKGSRC-WARNING: but its not added to USE_LANGUAGES in the package Makefile." 1>&2'; \
${ECHO} 'exit 1'
${RUN}${CHMOD} +x ${.TARGET}