pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mk/wrapper Let the MKPIE command sink for GCC re-use t...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/44ba4f9ccc61
branches:  trunk
changeset: 371629:44ba4f9ccc61
user:      khorben <khorben%pkgsrc.org@localhost>
date:      Thu Nov 16 00:31:47 2017 +0000

description:
Let the MKPIE command sink for GCC re-use the generic command sink

The cmd-sink-mkpie-gcc component for PKGSRC_MKPIE support on GCC was
lagging behind the generic one. This makes sure it cannot happen again,
by invoking the generic sink right away.

diffstat:

 mk/wrapper/cmd-sink-mkpie-gcc |  12 ++----------
 1 files changed, 2 insertions(+), 10 deletions(-)

diffs (26 lines):

diff -r 345e362b2a40 -r 44ba4f9ccc61 mk/wrapper/cmd-sink-mkpie-gcc
--- a/mk/wrapper/cmd-sink-mkpie-gcc     Wed Nov 15 23:35:27 2017 +0000
+++ b/mk/wrapper/cmd-sink-mkpie-gcc     Thu Nov 16 00:31:47 2017 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: cmd-sink-mkpie-gcc,v 1.3 2017/04/16 16:48:48 khorben Exp $
+# $NetBSD: cmd-sink-mkpie-gcc,v 1.4 2017/11/16 00:31:47 khorben Exp $
 #
 # Copyright (c) 2016 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -27,15 +27,7 @@
 # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 # POSSIBILITY OF SUCH DAMAGE.
 
-while ! queue_is_empty cmdbuf; do
-       pop_queue cmdbuf arg
-       $debug_log $wrapperlog "    (cmd-sink-mkpie-gcc) pop:  $arg"
-       case $arg in
-       *)
-               . $buildcmd
-               ;;
-       esac
-done
+. ${cmd_sink%-mkpie-gcc}
 
 # Append any optional flags required when linking binaries.
 if $test "$dont_link_binary" != "yes"; then



Home | Main Index | Thread Index | Old Index