lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

Hi, Lua developers!

Over at Nmap, we got a report of a build failure in Lua under the OpenWrt build environment, which turned out to be because it set the AR environment variable to the path to the cross-compiler's ar command. Lua's Makefile sets it to "ar rcu" so the "rcu" commands were not being passed to the ar program. Here's the link to our mailing list discussion:

The patch included in that thread solves the problem by moving the "rcu" commands to ar from the AR variable into the rule where AR is used. You could also set a separate variable like
AR_CMD = $(AR) rcu

and then use that wherever you currently use $(AR) in Make rules.

Thanks for an awesome tool! Lua is very valuable to Nmap, and we really enjoy working with it.