diff options
author | jlam <jlam@pkgsrc.org> | 2006-07-19 22:07:13 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2006-07-19 22:07:13 +0000 |
commit | f1759fb18113fbb235a061ab65b3c0268b53fda1 (patch) | |
tree | a4a9904c94351af17636618a6da7af7db8af9108 /mk/configure | |
parent | 704f6461c3bfeb19dbb8c4909d1e8eb8380b8784 (diff) | |
download | pkgsrc-f1759fb18113fbb235a061ab65b3c0268b53fda1.tar.gz |
Handle case where {SH,}LIBTOOL_OVERRIDE is empty for shells that don't
understand empty lists in for loops. Addresses PR pkg/34042.
Diffstat (limited to 'mk/configure')
-rw-r--r-- | mk/configure/libtool-override.mk | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/mk/configure/libtool-override.mk b/mk/configure/libtool-override.mk index 04d7eac8af7..79608f2e358 100644 --- a/mk/configure/libtool-override.mk +++ b/mk/configure/libtool-override.mk @@ -1,4 +1,4 @@ -# $NetBSD: libtool-override.mk,v 1.5 2006/07/19 19:14:39 jlam Exp $ +# $NetBSD: libtool-override.mk,v 1.6 2006/07/19 22:07:13 jlam Exp $ ###################################################################### ### {libtool,shlibtool}-override (PRIVATE) @@ -31,7 +31,9 @@ libtool-override: .if defined(LIBTOOL_OVERRIDE) ${_PKG_SILENT}${_PKG_DEBUG}set -e; \ cd ${WRKSRC}; \ - for file in ${LIBTOOL_OVERRIDE}; do \ + set -- dummy ${LIBTOOL_OVERRIDE}; shift; \ + while ${TEST} $$# -gt 0; do \ + file="$$1"; shift; \ ${TEST} -f "$$file" || continue; \ ${_SCRIPT.${.TARGET}}; \ done @@ -54,7 +56,9 @@ shlibtool-override: .if defined(SHLIBTOOL_OVERRIDE) && !empty(SHLIBTOOL_OVERRIDE) ${_PKG_SILENT}${_PKG_DEBUG}set -e; \ cd ${WRKSRC}; \ - for file in ${SHLIBTOOL_OVERRIDE}; do \ + set -- dummy ${SHLIBTOOL_OVERRIDE}; shift; \ + while ${TEST} $$# -gt 0; do \ + file="$$1"; shift; \ ${TEST} -f "$$file" || continue; \ ${_SCRIPT.${.TARGET}}; \ done |