This is intended to catch missing dependencies on the real version. Signed-off-by: Peter Kjellerstedt <peter.kjellerst...@axis.com> --- scripts/pkg-config | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 scripts/pkg-config
diff --git a/scripts/pkg-config b/scripts/pkg-config new file mode 100755 index 0000000..c6376ec --- /dev/null +++ b/scripts/pkg-config @@ -0,0 +1,16 @@ +#!/bin/sh + +# This is a dummy version that always fails. It is intended to catch +# missing dependencies on the real version. + +myname=${0##*/} + +echo "The correct version of $myname is not being used!" >&2 +echo "Make sure the recipe inherits 'pkgconfig'." >&2 + +# Return something that will make the compiler barf. This is for when +# pkg-config is used directly in a Makefile in a construct like: +# CFLAGS += $(shell pkg-config --cflags glib-2.0) +echo "The-correct-version-of-$myname-is-not-being-used" + +exit 1 -- 2.9.0 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core