gluon.mk: export LUA_CPATH again

Without exporting, it did not work.
This commit is contained in:
lemoer 2021-08-15 21:52:52 +02:00
parent 0105822cf9
commit 2c352be439

View File

@ -24,12 +24,9 @@ shell-verbatim = $(call shell-unescape,$(call shell-escape,$(1)))
# for the normal gluon build but is necessary for the imagebuilder.
# Note that all variables in GluonCheckSite except for $(1) are expanded when
# opkg calls the post-install scripts, not during the package build.
#
# [ -z "$$STAGING_DIR_HOSTPKG" ] || export LUA_CPATH="$${STAGING_DIR_HOSTPKG}/lib/lua/5.1/?.so"
#
# TODO: But maybe we do not need it anymore, since PATH is now altered?
define GluonCheckSite
[ -z "$$STAGING_DIR_HOSTPKG" ] || PATH="$$STAGING_DIR_HOSTPKG/bin:$$PATH"
[ -z "$$STAGING_DIR_HOSTPKG" ] || export LUA_CPATH="$${STAGING_DIR_HOSTPKG}/lib/lua/5.1/?.so"
lua "$$IPKG_INSTROOT/lib/gluon/check-site.lua" <<'END__GLUON__CHECK__SITE'
$(call shell-verbatim,cat '$(1)')
END__GLUON__CHECK__SITE