Skip to content

Commit

Permalink
tests: use correct pkg-config when cross compiling
Browse files Browse the repository at this point in the history
By convention, the PKG_CONFIG environment variable is used to tell
build systems which pkg-config executable should be used.  This is
often used when cross compiling, where it might be set to something
like "aarch64-unknown-linux-gnu-pkg-config".

Signed-off-by: Alyssa Ross <[email protected]>
Message-ID: <[email protected]>
Signed-off-by: David Gibson <[email protected]>
  • Loading branch information
alyssais authored and dgibson committed Jan 25, 2024
1 parent 0b8026f commit dcef5f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/run_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ if [ -n "$NO_YAML" ]; then
no_yaml=false
fi
else
if pkg-config --atleast-version 0.2.3 yaml-0.1; then
if ${PKG_CONFIG:-pkg-config} --atleast-version 0.2.3 yaml-0.1; then
no_yaml=false
else
no_yaml=true
Expand Down

0 comments on commit dcef5f8

Please sign in to comment.