summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorrillig <rillig@pkgsrc.org>2007-05-19 17:25:56 +0000
committerrillig <rillig@pkgsrc.org>2007-05-19 17:25:56 +0000
commita5f2e6092846ddb880904a20aec70127c4c6d8d2 (patch)
tree6b0da1cf26d4eaa55925933ba9d702a7a83e347d /mk
parent493677c451a67cfa65464f579b13921fe4c84117 (diff)
downloadpkgsrc-a5f2e6092846ddb880904a20aec70127c4c6d8d2.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"