[Buildroot] [PATCH 1/1] host-pkgconf: Link pkg-config to $(TARGET_CROSS)pkg-config

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Thu Jan 30 21:00:44 UTC 2014


Dear Bernd Kuhls,

On Sat, 18 Jan 2014 09:31:45 +0100, Bernd Kuhls wrote:
> Fixes ffmpeg configure warning
> 
> WARNING: /home/test/buildroot/output/host/usr/bin/nios2-linux-gnu-pkg-config not found, library detection may fail
> 
> found in
> http://autobuild.buildroot.net/results/c66/c663a518f65e786895d9ad8866193f70cbd6e96d/
> 
> Signed-off-by: Bernd Kuhls <berndkuhls at hotmail.com>
> ---
>  package/pkgconf/pkgconf.mk |    1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/package/pkgconf/pkgconf.mk b/package/pkgconf/pkgconf.mk
> index f3f6526..f467d66 100644
> --- a/package/pkgconf/pkgconf.mk
> +++ b/package/pkgconf/pkgconf.mk
> @@ -22,6 +22,7 @@ define HOST_PKGCONF_INSTALL_WRAPPER
>  	$(SED) 's, at PKG_CONFIG_LIBDIR@,$(STAGING_DIR)/usr/lib/pkgconfig:$(STAGING_DIR)/usr/share/pkgconfig,' \
>  		-e 's, at STAGING_DIR@,$(STAGING_DIR),' \
>  		$(HOST_DIR)/usr/bin/pkg-config
> +	ln -sf pkg-config $(TARGET_CROSS)pkg-config
>  endef
>  
>  PKGCONF_POST_INSTALL_TARGET_HOOKS += PKGCONF_LINK_PKGCONFIG

I think I'd prefer to have ffmpeg told to use the correct pkg-config
rather than adding this symbolic link.

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com


More information about the buildroot mailing list