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