diff options
author | jlam <jlam@pkgsrc.org> | 2005-01-10 03:40:25 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2005-01-10 03:40:25 +0000 |
commit | fe94a169330bd09e6e349e06ce58b0a730244a89 (patch) | |
tree | e70ec9c5d07abca784b4fe600349a9d4076fb808 /mk/wrapper/bsd.wrapper.mk | |
parent | b500ff92d79c57bf096b22f7c04dd93a3740cb71 (diff) | |
download | pkgsrc-fe94a169330bd09e6e349e06ce58b0a730244a89.tar.gz |
Avoid the silly optimization in the make logic and push it into the
shell script instead. We can't avoid invoking sed at least once since
we need to protect the arguments against shell expansion, but we avoid
invoking sed for transformations unless there actually are transformations
to perform. The code is simpler, more straightforward, and logically
correct now.
This fixes problems with using a non-GCC compiler with packages that
haven't been converted to use buildlink3, noted in PR pkg/28896.
Diffstat (limited to 'mk/wrapper/bsd.wrapper.mk')
-rw-r--r-- | mk/wrapper/bsd.wrapper.mk | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/mk/wrapper/bsd.wrapper.mk b/mk/wrapper/bsd.wrapper.mk index 31912ab8864..2855ce86a70 100644 --- a/mk/wrapper/bsd.wrapper.mk +++ b/mk/wrapper/bsd.wrapper.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.wrapper.mk,v 1.15 2004/12/05 09:29:26 grant Exp $ +# $NetBSD: bsd.wrapper.mk,v 1.16 2005/01/10 03:40:25 jlam Exp $ # # Copyright (c) 2004 The NetBSD Foundation, Inc. # All rights reserved. @@ -225,11 +225,7 @@ _WRAP_LOGIC.${_wrappee_}?= ${_WRAP_LOGIC} _WRAP_SCAN.${_wrappee_}?= ${_WRAP_SCAN} _WRAP_TRANSFORM.${_wrappee_}?= ${_WRAP_TRANSFORM} _WRAP_TRANSFORM_SED.${_wrappee_}?= ${_WRAP_TRANSFORM_SED} -. if !empty(_WRAP_TRANSFORM_SED.${_wrappee_}) -_WRAP_SKIP_TRANSFORM.${_wrappee_}?= no -. else _WRAP_SKIP_TRANSFORM.${_wrappee_}?= ${_WRAP_SKIP_TRANSFORM} -. endif .endfor # _WRAPPEES .if !empty(PKGSRC_COMPILER:Maix-xlc) |