lua-users home
lua-l archive

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


Glyn Adgie reported a bug in src/luac/Makefile: $(DLLIB) is needed on line 16.

16c16
>       $(CC) -o $@ $(MYLDFLAGS) $(OBJS) -L$(LIB) -llua -llualib $(EXTRA_LIBS)
---
<       $(CC) -o $@ $(MYLDFLAGS) $(OBJS) -L$(LIB) -llua -llualib $(EXTRA_LIBS) $(DLLIB)

This bug happens when you have dynamic loading turned and do "make so sobin":
without $(DLLIB), the linker will complain about missing dlopen and friends
(which is silly because luac does not use dynamic loading, but that's life in
the shared library world, at least in the way we build liblualib.so; this will
be fixed more cleanly in the next version).
--lhf