lua-users home
lua-l archive

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


On Fri, Mar 21, 2014 at 05:44:02PM -0300, Luiz Henrique de Figueiredo wrote:
> Lua 5.3.0 (work2) is now available for testing at
> 	http://www.lua.org/work/lua-5.3.0-work2.tar.gz
> 
<snip>
> Enjoy. All feedback welcome. Thanks.
> --lhf

On Solaris flockfile and friends aren't visible by default. Here's a simple
patch for the Solaris target which adds -D_REENTRANT to SYSCFLAGS.

--- src/Makefile~       Mon Mar 31 13:45:02 2014
+++ src/Makefile        Mon Mar 31 13:48:32 2014
@@ -118,7 +118,7 @@
        $(MAKE) $(ALL) SYSCFLAGS="-DLUA_USE_POSIX"
 
 solaris:
-       $(MAKE) $(ALL) SYSCFLAGS="-DLUA_USE_POSIX -DLUA_USE_DLOPEN" SYSLIBS="-ldl"
+       $(MAKE) $(ALL) SYSCFLAGS="-DLUA_USE_POSIX -DLUA_USE_DLOPEN -D_REENTRANT" SYSLIBS="-ldl"
 
 # list targets that do not create files (but not all makes understand
 # .PHONY)
 .PHONY: all $(PLATS) default o a clean depend echo none