cross-pkg-config uses bash extensions like ${!var} but a shebang #!/bin/sh. It therefore fails when /bin/sh is for example mksh. Reproducible: Always
Created attachment 386438 [details, diff] proposed patch
Comment on attachment 386438 [details, diff] proposed patch the intention is for the script to not require bash, so the ${!var} should be changed instead
One could use "eval libdir=\$$var". There does not seem to be a way to do it with POSIX sh without resorting to eval.
should be fixed in the next snapshot http://git.overlays.gentoo.org/gitweb/?p=proj/crossdev.git;a=commitdiff;h=4642d41545192b4ac7c6034663c09e75fa78561c