lua-users home
lua-l archive

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


Le 29/06/2014 16:33, Stefan Parvu a écrit :
Hi,

I'm trying to compile lua 5.2.3 on FreeBSD 10 amd64 that I could use for RRDtool.
For some reasons lua builds fine but there is no shared library produced during building phase.
I have only a static library, under lib/

During building:

"make all SYSCFLAGS="-DLUA_USE_LINUX" SYSLIBS="-Wl,-E -lreadline"
cc -O2 -Wall -DLUA_COMPAT_ALL -DLUA_USE_LINUX  -c lapi.c
cc -O2 -Wall -DLUA_COMPAT_ALL -DLUA_USE_LINUX  -c lcode.c
cc -O2 -Wall -DLUA_COMPAT_ALL -DLUA_USE_LINUX  -c lctype.c
cc -O2 -Wall -DLUA_COMPAT_ALL -DLUA_USE_LINUX  -c ldebug.c
cc -O2 -Wall -DLUA_COMPAT_ALL -DLUA_USE_LINUX  -c ldo.c
cc -O2 -Wall -DLUA_COMPAT_ALL -DLUA_USE_LINUX  -c ldump.c
..."

$ ls -lrt /opt/sdr/lib/
total 388
drwxr-xr-x  3 sdr  sdr       3 Jun 29 09:18 lua
-rw-r--r--  1 sdr  sdr  375916 Jun 29 17:28 liblua.a

Reading from docs I understood I should be able to obtain the shared library ... any ideas why
I'm not able to build lua correctly on FreeBSD ?

Many thanks,

Why don't you just use the port or package ?

pkg install lua52

or if you want by sources you can use ports [1]

make -C /usr/ports/lang/lua52 install clean

Regards,
David.

[1] http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/ports.html