lua-users home
lua-l archive

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


2015-08-07 6:49 GMT+02:00 Daurnimator <quae@daurnimator.com>:
> On 7 August 2015 at 14:11, Dirk Laurie <dirk.laurie@gmail.com> wrote:
>> For linking with other interfaces to the Lua libraries, I added the following
>> to the Makefile.
>>
>> 1. -fPIC on CFLAGS.
>> 2. A new target.
>> liblua.so: $(BASE_O)
>>     cc -shared $(BASE_O) -o liblua.so
...
> Lua does use mkstemp if you set LUA_USE_POSIX.
> See: http://www.lua.org/source/5.3/loslib.c.html#LUA_TMPNAMTEMPLATE
>
> LUA_USE_POSIX is defined by `make linux`.
> I'm guessing your new target doesn't define it?
>

I have improved the target to:
liblua.so: $(BASE_O) Makefile
    $(CC) $(SYSCFLAGS) -shared $(BASE_O) -o liblua.so

The warning is gone. Thanks.