[Buildroot] using pkg-config when building
Daniel Laird
danieljlaird at hotmail.com
Thu Feb 8 16:36:38 UTC 2007
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
--
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.
More information about the buildroot
mailing list