lua-users home
lua-l archive

Re: Lua 5.1 shared libraries, on Mac

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


Luiz Henrique de Figueiredo wrote:
The default Lua "make install" is also missing the
*extra* ranlib after install as required by Darwin:
That's because "make install" uses "cp" by default. Try using "cp -p"
(but then you may end up with the wrong owner for the files...):
	make install INSTALL_EXEC="cp -p" INSTALL_DATA="cp -p"
That's what "make local" does.
Yes, using "cp -p" (as above) works OK too...
For my own projects, I've just resorted to explicit:
OS=$(shell uname)
ARCH=$(shell arch)
RANLIB=ranlib
INSTALL=install
install: libfoo.a
	$(INSTALL) libfoo.a /usr/local/lib/
	[ "$(OS)" = "Darwin" ] && $(RANLIB) /usr/local/lib/libfoo.a
Either of the workarounds should be done for "macosx"
--anders

AltStyle によって変換されたページ (->オリジナル) /