Re: [PATCH] rtla: Fix cross building

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 20 Jan 2023 08:08:09 +0100
Johannes Schauer Marin Rodrigues <josch@xxxxxxxxxxxxxxxx> wrote:

> For a successful cross-build, the host-architecture version of
> pkg-config must be used or otherwise host architecture headers of
> libtracefs and libtraceevent will not be found.
> 
> Signed-off-by: Johannes Schauer Marin Rodrigues <josch@xxxxxxxxxxxxxxxx>
> ---
>  tools/tracing/rtla/Makefile | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/tools/tracing/rtla/Makefile b/tools/tracing/rtla/Makefile
> index 22e28b76f800..26ebd46ec29c 100644
> --- a/tools/tracing/rtla/Makefile
> +++ b/tools/tracing/rtla/Makefile
> @@ -18,7 +18,7 @@ endef
>  $(call allow-override,CC,$(CROSS_COMPILE)gcc)
>  $(call allow-override,AR,$(CROSS_COMPILE)ar)
>  $(call allow-override,STRIP,$(CROSS_COMPILE)strip)
> -$(call allow-override,PKG_CONFIG,pkg-config)
> +$(call allow-override,PKG_CONFIG,$(CROSS_COMPILE)pkg-config)
>  $(call allow-override,LD_SO_CONF_PATH,/etc/ld.so.conf.d/)
>  $(call allow-override,LDCONFIG,ldconfig)
>  

I don't usually have pkg-config as part of my cross build path. I have just
overridden it to use different commands, by defining the variable of
PKG_CONFIG, but I have not had any issues. But my compiler path never
included pkg-config.

-- Steve



[Index of Archives]     [Linux USB Development]     [Linux USB Development]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux