[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Lua 5.1 shared libraries, on Mac
- From: Anders F Björklund <afb@...>
- Date: Wed, 25 Jan 2006 16:03:27 +0100
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