Skip to contentSkip to conversation

using pkg-config when building

Buildroot Daniel Laird 1 participant 1 message Feb 8, 2007

lore
Share & tools
lore
#0 lore raw

If I try to use pkg-config when doing a cross-compile it does not work. Paths not found etc.

If I make the following modification to package/Makefile.in

@@ -91,6 +91,7 @@
OBJCOPY=$(TARGET_CROSS)objcopy \
CC_FOR_BUILD="$(HOSTCC)" \
PKG_CONFIG_SYSROOT=$(STAGING_DIR) \
+ PKG_CONFIG_PATH=$(STAGING_DIR)/lib/pkgconfig:$(STAGING_DIR)/usr/lib/pkgconfig:$(STAGING_DIR)/usr/local/lib/pkgconfig \
PKG_CONFIG=$(STAGING_DIR)/usr/bin/pkg-config

This sets up the search path for pkgconfig and it will search these dirs
for pkgconfig files. Seems to have made all the difference for me. Maybe this can make it into the tree.....

Cheers
Dan

Signature · 2 lines
View this message in context: http://www.nabble.com/using-pkg-config-when-building-tf3194366.html#a8868910
Sent from the BuildRoot mailing list archive at Nabble.com.