move pkg config stuff to per-target exports to prevent interference with host builds
[openwrt-10.03/.git] / include / host-build.mk
index ffba12b51d2fcbfae7a4ab242bc5793bb9e662ad..1a794846bbf1b4cc40d20e793d4c7d85c76b4e6f 100644 (file)
@@ -115,6 +115,8 @@ ifndef DUMP
        $(call Host/Prepare)
        touch $$@
 
+  $(HOST_STAMP_CONFIGURED) : export PKG_CONFIG_PATH=$$(STAGING_DIR_HOST)/lib/pkgconfig
+  $(HOST_STAMP_CONFIGURED) : export PKG_CONFIG_LIBDIR=$$(STAGING_DIR_HOST)/lib/pkgconfig
   $(HOST_STAMP_CONFIGURED): $(HOST_STAMP_PREPARED)
        $(call Host/Configure)
        touch $$@