aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2014-10-30 20:51:54 -0400
committerMike Frysinger <vapier@gentoo.org>2014-10-30 20:51:54 -0400
commit4642d41545192b4ac7c6034663c09e75fa78561c (patch)
tree856491dd4e5433ca58d9febd4d3b478efad7502d /wrappers/cross-pkg-config
parentcrossdev: disable USE=sanitize during gcc stage1 (diff)
downloadcrossdev-4642d41545192b4ac7c6034663c09e75fa78561c.tar.gz
crossdev-4642d41545192b4ac7c6034663c09e75fa78561c.tar.bz2
crossdev-4642d41545192b4ac7c6034663c09e75fa78561c.zip
cross-pkg-config: avoid bashism
URL: https://bugs.gentoo.org/525068 Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'wrappers/cross-pkg-config')
-rwxr-xr-xwrappers/cross-pkg-config2
1 files changed, 1 insertions, 1 deletions
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)/..")