X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/0b6f907a912b8551e007eb85f24c87f6000edafa..f9f1a967746c940b98080ee24439e795faa826c6:/include/host-build.mk diff --git a/include/host-build.mk b/include/host-build.mk index ffba12b51..af46c3e24 100644 --- a/include/host-build.mk +++ b/include/host-build.mk @@ -103,6 +103,14 @@ define Download/default MD5SUM:=$(PKG_MD5SUM) endef +define Host/Exports/Default + $(1) : export ACLOCAL_INCLUDE=$$(foreach p,$$(wildcard $$(STAGING_DIR_HOST)/share/aclocal $$(STAGING_DIR_HOST)/share/aclocal-*),-I $$(p)) + $(1) : export STAGING_PREFIX=$$(STAGING_DIR_HOST) + $(1) : export PKG_CONFIG_PATH=$$(STAGING_DIR_HOST)/lib/pkgconfig + $(1) : export PKG_CONFIG_LIBDIR=$$(STAGING_DIR_HOST)/lib/pkgconfig +endef +Host/Exports=$(Host/Exports/Default) + ifndef DUMP define HostBuild $(if $(HOST_QUILT),$(Host/Quilt)) @@ -115,10 +123,12 @@ ifndef DUMP $(call Host/Prepare) touch $$@ + $(call Host/Exports,$(STAMP_CONFIGURED)) $(HOST_STAMP_CONFIGURED): $(HOST_STAMP_PREPARED) $(call Host/Configure) touch $$@ + $(call Host/Exports,$(STAMP_BUILT)) $(HOST_STAMP_BUILT): $(HOST_STAMP_CONFIGURED) $(call Host/Compile) touch $$@