pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/mk Add a toggle that determines whether we pass extra ...
details: https://anonhg.NetBSD.org/pkgsrc/rev/ac82d9a24492
branches: trunk
changeset: 480963:ac82d9a24492
user: jlam <jlam%pkgsrc.org@localhost>
date: Wed Sep 22 17:56:31 2004 +0000
description:
Add a toggle that determines whether we pass extra arguments or not. This
is intended to be toggled by a $scan file. Simplify buildlink3 by removing
_BLNK_LIBTOOL_LDFLAGS and just setting _WRAP_EXTRA_ARGS.* like all of the
other wrappers.
diffstat:
mk/buildlink3/bsd.buildlink3.mk | 6 +++---
mk/buildlink3/scan-libtool | 7 +++++--
mk/wrapper/wrapper.sh | 13 +++++++++++--
3 files changed, 19 insertions(+), 7 deletions(-)
diffs (89 lines):
diff -r 319e7132f277 -r ac82d9a24492 mk/buildlink3/bsd.buildlink3.mk
--- a/mk/buildlink3/bsd.buildlink3.mk Wed Sep 22 17:38:30 2004 +0000
+++ b/mk/buildlink3/bsd.buildlink3.mk Wed Sep 22 17:56:31 2004 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.buildlink3.mk,v 1.154 2004/09/21 15:01:40 jlam Exp $
+# $NetBSD: bsd.buildlink3.mk,v 1.155 2004/09/22 17:56:31 jlam Exp $
#
# Copyright (c) 2004 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -1056,7 +1056,8 @@
_WRAP_EXTRA_ARGS.CPP+= ${_BLNK_CPPFLAGS}
_WRAP_EXTRA_ARGS.FC+= ${_BLNK_CPPFLAGS} ${_BLNK_LDFLAGS}
_WRAP_EXTRA_ARGS.LD+= ${_BLNK_LDFLAGS}
-_BLNK_LIBTOOL_LDFLAGS= ${_BLNK_LDFLAGS}
+_WRAP_EXTRA_ARGS.LIBTOOL+= ${_BLNK_LDFLAGS}
+_WRAP_EXTRA_ARGS.SHLIBTOOL+= ${_BLNK_LDFLAGS}
${WRAPPER_TMPDIR}/libtool-fix-la: ${BUILDLINK_SRCDIR}/libtool-fix-la
${_PKG_SILENT}${_PKG_DEBUG}${MKDIR} ${.TARGET:H}
@@ -1095,7 +1096,6 @@
${WRAPPER_TMPDIR}/scan-libtool: ${BUILDLINK_SRCDIR}/scan-libtool
${_PKG_SILENT}${_PKG_DEBUG}${MKDIR} ${.TARGET:H}
${_PKG_SILENT}${_PKG_DEBUG}${CAT} ${.ALLSRC} \
- | ${SED} -e "s|@_BLNK_LIBTOOL_LDFLAGS@|${_BLNK_LIBTOOL_LDFLAGS:Q}|g" \
| ${_WRAP_SH_CRUNCH_FILTER} > ${.TARGET}
${WRAPPER_TMPDIR}/transform-libtool: ${BUILDLINK_SRCDIR}/transform-libtool
diff -r 319e7132f277 -r ac82d9a24492 mk/buildlink3/scan-libtool
--- a/mk/buildlink3/scan-libtool Wed Sep 22 17:38:30 2004 +0000
+++ b/mk/buildlink3/scan-libtool Wed Sep 22 17:56:31 2004 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: scan-libtool,v 1.1 2004/09/21 15:01:41 jlam Exp $
+# $NetBSD: scan-libtool,v 1.2 2004/09/22 17:56:31 jlam Exp $
#
# Copyright (c) 2004 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -112,7 +112,7 @@
# archives.
######################################################################
link)
- set -- "$@" @_BLNK_LIBTOOL_LDFLAGS@
+ append_extra_args=yes
;;
######################################################################
# We're doing libtool execution or installation, so just invoke the
@@ -122,4 +122,7 @@
msg_log $wrapperlog "<.> $cmd $@"
exec $cmd "$@"
;;
+*)
+ append_extra_args=no
+ ;;
esac
diff -r 319e7132f277 -r ac82d9a24492 mk/wrapper/wrapper.sh
--- a/mk/wrapper/wrapper.sh Wed Sep 22 17:38:30 2004 +0000
+++ b/mk/wrapper/wrapper.sh Wed Sep 22 17:56:31 2004 +0000
@@ -1,6 +1,6 @@
#! @WRAPPER_SHELL@
#
-# $NetBSD: wrapper.sh,v 1.1 2004/09/21 15:01:41 jlam Exp $
+# $NetBSD: wrapper.sh,v 1.2 2004/09/22 17:56:31 jlam Exp $
#
# Copyright (c) 2004 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -52,6 +52,7 @@
wrapperlog="${WRAPPER_LOG-@_WRAP_LOG@}"
skip_transform="${WRAPPER_SKIP_TRANSFORM-@_WRAP_SKIP_TRANSFORM@}"
debug="${WRAPPER_DEBUG-no}"
+append_extra_args=yes
cat="@CAT@"
echo="@ECHO@"
@@ -80,7 +81,15 @@
. $scan
-set -- "$@" @_WRAP_EXTRA_ARGS@
+case $append_extra_args in
+yes)
+ $debug_log $wrapperlog " (wrapper.sh) append args: @_WRAP_EXTRA_ARGS@"
+ set -- "$@" @_WRAP_EXTRA_ARGS@
+ ;;
+*)
+ ;;
+esac
+
. $arg_source
. $logic
. $cmd_sink
Home |
Main Index |
Thread Index |
Old Index