Skip to contentSkip to conversation

host-pkgconf: Link pkg-config to $(TARGET_CROSS)pkg-config

PATCH New Bernd Kuhls 2 participants 2 messages Jan 18, 2014 – Jan 30, 2014

lore
Share & tools
lore
#0 lore raw

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

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/

---
 package/pkgconf/pkgconf.mk |    1 +
 1 file changed, 1 insertion(+)
package/pkgconf/pkgconf.mk +1 -0
index f3f6526..f467d66 100644
@@ -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
Signature · 1 line
1.7.9.5
#1 lore raw

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

Dear Bernd Kuhls,

Quoted 17 lines · Bernd Kuhls

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/

---
 package/pkgconf/pkgconf.mk |    1 +
 1 file changed, 1 insertion(+)
package/pkgconf/pkgconf.mk +0 -0
index f3f6526..f467d66 100644

package/pkgconf/pkgconf.mk define HOST_PKGCONF_INSTALL_WRAPPER · line 28

Quoted 7 lines
package/pkgconf/pkgconf.mk +1 -0
@@ -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

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