lua-users home
lua-l archive

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

On 16/02/2011, at 9:02 AM, Josh Haberman wrote:

> Ok, I added "-undefined dynamic_lookup" to the link line and removed
> -llua and now everything works fine.  I'll update the wiki page:
> Currently it suggests that building on OSX is the same as on Linux GCC,
> but OS X has the unique requirement that you pass:
>  -undefined dynamic_lookup
> ...even when you're compiling with -shared, which Linux does not.

I think there's a -bundle-loader option (or similar, my memory is a bit vague) that achieves the same thing, with the added advantage that it checks the undefined symbols are available.