lua-users home
lua-l archive

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


>>>>> "Luiz" == Luiz Henrique de Figueiredo <lhf@tecgraf.puc-rio.br> writes:

 Luiz> Could you please confirm that the Lua 5.4.0 Makefile works out of
 Luiz> the box in freebsd? Plain make should work because the Makefile
 Luiz> guess the system using uname.

I can confirm that the 5.4.0-rc2 tarball compiles out of the box without
warnings on freebsd: recent 11-stable (llvm 8.0.1 compiler), fairly
recent 12-stable (llvm 9.0.x compiler), and very recent 12-stable (llvm
10.0.0 compiler).

The Makefile patches that will likely go into the freebsd port, similar
to those for 5.3, are as follows:

https://reviews.freebsd.org/differential/changeset/?ref=777138
(from https://reviews.freebsd.org/D14709 )

The specific changes are:

1. Patch makefile to build a .so in addition to .a.

2. Patch makefile to remove explicit uses of -O2/-Os, to conform to
   ports policy that optimization levels are set by the framework (so
   that for example WITH_DEBUG can turn optimization off).

3. Use $(ARFLAGS) rather than hardcoded "rcu". (Not necessary but better
   style.)

Note that the port uses "make bsd" rather than "make freebsd" to more
easily conform to another ports policy: ports must not link to the base
system libedit.so, which is not part of the stable ABI; they have to
install the libedit port as a dependency. We also override CC and a
variety of other makefile variables from the port makefile.

In addition there are the following other optional patches in the port:

1. optional patch to enable ASSERT checks, off by default. (This is
   probably overkill, but I've personally found it useful on occasion.)

2. optional patch, _on_ by default, to load libedit dynamically with
   RTLD_LOCAL. This avoids a problem whereby libedit can bring in one
   version of libncurses, while the lcurses module tries to bring in a
   different one. Using RTLD_LOCAL keeps them apart.

-- 
Andrew.
_______________________________________________
lua-l mailing list -- lua-l@lists.lua.org
To unsubscribe send an email to lua-l-leave@lists.lua.org