Browse Source

pkgconfig: export variables

Export the PKG_CONFIG_PATH and PKG_CONFIG_LIBDIR variables in case the
parent shell hasn't done so.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Joshua Watt 5 years ago
parent
commit
42f33bb5a4
1 changed files with 2 additions and 2 deletions
  1. 2 2
      meta/recipes-devtools/pkgconfig/pkgconfig/pkg-config-native.in

+ 2 - 2
meta/recipes-devtools/pkgconfig/pkgconfig/pkg-config-native.in

@@ -1,7 +1,7 @@
 #! /bin/sh
 
-PKG_CONFIG_PATH="@PATH_NATIVE@"
-PKG_CONFIG_LIBDIR="@LIBDIR_NATIVE@"
+export PKG_CONFIG_PATH="@PATH_NATIVE@"
+export PKG_CONFIG_LIBDIR="@LIBDIR_NATIVE@"
 unset PKG_CONFIG_SYSROOT_DIR
 
 pkg-config "$@"