lua-users home
lua-l archive

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

On Mon, 25 Sep 2006 22:35:57 +0300
Asko Kauppi <> wrote:

> Can you use fink?

...and you will benefit from having repositories of other fine Unix
packages :-)
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

Attachment: signature.asc
Description: PGP signature