[PATCH rtems-source-builder 1/2] source-builder: Handle modern pkg-config symlinks

Chris Johns chrisj at rtems.org
Thu Feb 1 21:05:52 UTC 2024


On 31/1/2024 8:36 am, Kinsey Moore wrote:
> Modern versions of pkg-config include new architecture-specific symlinks
> that are sometimes checked before "pkg-config". 

Oh that is a shame they have done this. Seems messy to me.

> This causes builds to
> detect the system pkg-config instead of the local overridden pkg-config
> and fail to build properly. This overrides those new symlinks to restore
> build functionality.

OK to push

Thanks
Chris

> ---
>  source-builder/aarch64-linux-gnu-pkg-config | 3 +++
>  source-builder/x86_64-linux-gnu-pkg-config  | 3 +++
>  2 files changed, 6 insertions(+)
>  create mode 100755 source-builder/aarch64-linux-gnu-pkg-config
>  create mode 100755 source-builder/x86_64-linux-gnu-pkg-config
> 
> diff --git a/source-builder/aarch64-linux-gnu-pkg-config b/source-builder/aarch64-linux-gnu-pkg-config
> new file mode 100755
> index 0000000..09d7b16
> --- /dev/null
> +++ b/source-builder/aarch64-linux-gnu-pkg-config
> @@ -0,0 +1,3 @@
> +#! /bin/sh
> +base=$(dirname $0)
> +exec ${base}/pkg-config $*
> diff --git a/source-builder/x86_64-linux-gnu-pkg-config b/source-builder/x86_64-linux-gnu-pkg-config
> new file mode 100755
> index 0000000..09d7b16
> --- /dev/null
> +++ b/source-builder/x86_64-linux-gnu-pkg-config
> @@ -0,0 +1,3 @@
> +#! /bin/sh
> +base=$(dirname $0)
> +exec ${base}/pkg-config $*


More information about the devel mailing list