commit: 4642d41545192b4ac7c6034663c09e75fa78561c Author: Mike Frysinger <vapier <AT> gentoo <DOT> org> AuthorDate: Fri Oct 31 00:51:54 2014 +0000 Commit: Mike Frysinger <vapier <AT> gentoo <DOT> org> CommitDate: Fri Oct 31 00:51:54 2014 +0000 URL: http://sources.gentoo.org/gitweb/?p=proj/crossdev.git;a=commit;h=4642d415
cross-pkg-config: avoid bashism URL: https://bugs.gentoo.org/525068 Signed-off-by: Mike Frysinger <vapier <AT> gentoo.org> --- wrappers/cross-pkg-config | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wrappers/cross-pkg-config b/wrappers/cross-pkg-config index 000d6ad..6b68fa7 100755 --- a/wrappers/cross-pkg-config +++ b/wrappers/cross-pkg-config @@ -82,7 +82,7 @@ unset PKG_CONFIG_ALLOW_SYSTEM_LIBS # : ${ABI:=${DEFAULT_ABI:-default}} var="LIBDIR_${ABI}" -libdir=${!var} +eval libdir=\${${var}} if [ -z "${libdir}" ] ; then # Fall back to probing the compiler. libdir=$(realpath "$(${CC:-${CHOST}-gcc} ${CFLAGS} ${LDFLAGS} -print-file-name=pkgconfig)/..")
