From 09de414e5dd52d43ada9f89a5266428ff95b27f3 Mon Sep 17 00:00:00 2001 From: lemoer Date: Sun, 15 Aug 2021 16:50:09 +0200 Subject: [PATCH] experiment with LUA_CPATH --- package/gluon.mk | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/package/gluon.mk b/package/gluon.mk index 7ae261a2..04e434bd 100644 --- a/package/gluon.mk +++ b/package/gluon.mk @@ -24,9 +24,13 @@ 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" -LUA_CPATH="$${TOPDIR}/staging_dir/hostpkg/lib/lua/5.1/?.so" lua "$$IPKG_INSTROOT/lib/gluon/check-site.lua" <<'END__GLUON__CHECK__SITE' +lua "$$IPKG_INSTROOT/lib/gluon/check-site.lua" <<'END__GLUON__CHECK__SITE' $(call shell-verbatim,cat '$(1)') END__GLUON__CHECK__SITE endef