diff options
Diffstat (limited to 'meta/recipes-devtools/pkgconf/pkgconf/pkg-config-wrapper')
-rwxr-xr-x | meta/recipes-devtools/pkgconf/pkgconf/pkg-config-wrapper | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/meta/recipes-devtools/pkgconf/pkgconf/pkg-config-wrapper b/meta/recipes-devtools/pkgconf/pkgconf/pkg-config-wrapper new file mode 100755 index 0000000000..695f349566 --- /dev/null +++ b/meta/recipes-devtools/pkgconf/pkgconf/pkg-config-wrapper | |||
@@ -0,0 +1,16 @@ | |||
1 | #!/bin/sh | ||
2 | # pkgconf wrapper to deal with pkg-config/pkgconf compatibility issues | ||
3 | # | ||
4 | # Copyright (C) 2015 Christopher Larson <chris_larson@mentor.com> | ||
5 | # License: MIT (see COPYING.MIT at the root of the repository for terms) | ||
6 | |||
7 | for arg; do | ||
8 | case "$arg" in | ||
9 | --variable|--variable=*) | ||
10 | # pkg-config doesn't sysroot-prefix user variables | ||
11 | unset PKG_CONFIG_SYSROOT_DIR | ||
12 | ;; | ||
13 | esac | ||
14 | done | ||
15 | |||
16 | exec pkgconf "$@" | ||