[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Building lua dylib on Mac OS X 10.4
- From: Adrian Perez <moebius.lists@...>
- Date: Mon, 25 Sep 2006 22:03:17 +0200
On Mon, 25 Sep 2006 22:35:57 +0300
Asko Kauppi <email@example.com> wrote:
> Can you use fink?
...and you will benefit from having repositories of other fine Unix
As another option, just add the following to the end of
"src/Makefile" (untested but should work, note that first character
in the second line MUST be a tab):
liblua.dylib: $(CORE_O) $(LIB_O)
$(CC) -dynamiclib -o $@ $^ $(LIBS)
Then you can do:
% make macosx
% make -C src liblua.dylib
This works as the GCC included with Xcode does always generate PIC
code, so you can use the same set of object files to build both the
static and dynamic libraries. (At least it was that way the last time I
used MacOS X :-P).
User: I'm having problems with my text editor.
Help desk: Which editor are you using?
User: I don't know, but it's version VI (pronounced: 6).
Help desk: Oh, then you should upgrade to version VIM (pronounced:
Contrary to popular belief, Unix is user friendly.
It just happens to be selective about who it makes friends with.
-- Dave Parnas
Description: PGP signature