diff options
author | rillig <rillig> | 2007-05-19 17:25:56 +0000 |
---|---|---|
committer | rillig <rillig> | 2007-05-19 17:25:56 +0000 |
commit | 4df71f9d472db94e18f8a670fce93ee579eb7312 (patch) | |
tree | 6b0da1cf26d4eaa55925933ba9d702a7a83e347d /mk | |
parent | 2b44de0fd4d864384aa0656e617e9067ea391122 (diff) | |
download | pkgsrc-4df71f9d472db94e18f8a670fce93ee579eb7312.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.sh | 4 |
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" |