summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorrillig <rillig>2007-05-19 17:25:56 +0000
committerrillig <rillig>2007-05-19 17:25:56 +0000
commit89d6cc7bc11a3287a1ec57dff292f145bd941d6e (patch)
tree6b0da1cf26d4eaa55925933ba9d702a7a83e347d /mk
parente24adaa03b70f5c611c5330c39d4fc036d57033d (diff)
downloadpkgsrc-89d6cc7bc11a3287a1ec57dff292f145bd941d6e.tar.gz
When a wrapped compiler or linker command fails, the transformed command
line is no longer printed by default. To get that behavior back, you can set the variable WRAPPER_DEBUG to "yes". This avoids some noise during the build. The old behavior was mostly useful on Solaris and IRIX, where a -std=c99 or -c99 option had been added to the compiler's arguments by the wrapper. This caused diagnostics that were hard to understand, since the user did not specify these flags and there was no sign that they had been added.
Diffstat (limited to 'mk')
-rw-r--r--mk/wrapper/wrapper.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/mk/wrapper/wrapper.sh b/mk/wrapper/wrapper.sh
index 38a5205775b..b427dadb256 100644
--- a/mk/wrapper/wrapper.sh
+++ b/mk/wrapper/wrapper.sh
@@ -1,6 +1,6 @@
#! @WRAPPER_SHELL@
#
-# $NetBSD: wrapper.sh,v 1.17 2007/03/15 22:09:29 rillig Exp $
+# $NetBSD: wrapper.sh,v 1.18 2007/05/19 17:25:56 rillig Exp $
#
# Copyright (c) 2004 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -133,7 +133,7 @@ eval "$cmd" || wrapper_result="$?"
. $cleanup
-[ $wrapper_result -eq 0 ] || {
+[ $wrapper_result -eq 0 ] || [ "$debug" != "yes" ] || {
echo ""
echo "[wrapper.sh] note: The real command line, after the pkgsrc wrapper, was:"
echo "$cmd"