diff options
author | obache <obache@pkgsrc.org> | 2013-02-23 09:59:14 +0000 |
---|---|---|
committer | obache <obache@pkgsrc.org> | 2013-02-23 09:59:14 +0000 |
commit | 5ea1d73f6f6bce8ef3de5d06db1736712832f1a2 (patch) | |
tree | 9a7917e4c2888f7f1acbabb0d5b2f70b46e2c776 /mk | |
parent | 83d6252c2aa13f8c70722219be1fe44cf9c8c8fc (diff) | |
download | pkgsrc-5ea1d73f6f6bce8ef3de5d06db1736712832f1a2.tar.gz |
prevent to expand if dlname is empty.
Diffstat (limited to 'mk')
-rwxr-xr-x | mk/plist/libtool-expand | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mk/plist/libtool-expand b/mk/plist/libtool-expand index 4392e11884e..1080d226f92 100755 --- a/mk/plist/libtool-expand +++ b/mk/plist/libtool-expand @@ -1,6 +1,6 @@ #! /bin/sh # -# $NetBSD: libtool-expand,v 1.5 2013/02/10 12:03:00 obache Exp $ +# $NetBSD: libtool-expand,v 1.6 2013/02/23 09:59:14 obache Exp $ # # Copyright (c) 2004 The NetBSD Foundation, Inc. # All rights reserved. @@ -86,7 +86,7 @@ do ${ECHO} 1>&2 "$self: \`$lapath' was not properly installed" exit 1 fi - if ${TEST} ${SHLIB_TYPE} = "PEwin"; then + if ${TEST} ! -z "$dlname" -a ${SHLIB_TYPE} = "PEwin"; then cwd=`${PWD_CMD}` libpath="$dir$dlname" libpath=`${DIRNAME} "$libpath"` |