[Buildroot] [PATCH next v2] package/luarocks: rework configuration file for per-package folders

Arnout Vandecappelle arnout at mind.be
Tue Nov 20 22:11:28 UTC 2018



On 20/11/2018 14:01, Thomas Petazzoni wrote:
> +LUAROCKS_RUN_ENV = \
> +	LUA_PATH="$(HOST_DIR)/share/lua/$(LUAINTERPRETER_ABIVER)/?.lua" \
> +	STAGING_DIR="$(STAGING_DIR)" \
> +	TARGET_DIR="$(TARGET_DIR)" \

 These two are already exported in top-level Makefile, so it shouldn't be needed
(note that when a variable is exported, it will get its value from the context
where the shell is started, not from where the 'export' statement is put, so it
does exactly what we need it to).

> +	TARGET_CC="$(TARGET_CC)" \
> +	TARGET_CFLAGS="$(LUAROCKS_CFLAGS)" \
> +	TARGET_LDFLAGS="$(TARGET_LDFLAGS)"

 For these three, I expect other package infras will need it as well, so it
would make sense to export them too.

 Regards,
 Arnout



More information about the buildroot mailing list