|
Am 18.03.2016 um 16:11 schröbte Jay Carlson:
On 2016-03-18, at 10:39 AM, Peter Hickman <peterhickman386@googlemail.com> wrote: * gcc -Wall -shared -fPIC -o time_now.so -llua time_now.cI've lost track. What's the "official" way to build Lua plugins on OS X?
I believe something likeenv MACOSX_DEPLOYMENT_TARGET=10.5 gcc -Wall -O2 -fPIC -bundle -undefined dynamic_lookup -all_load -o time_now.so time_now.c
(at least that's what LuaRocks uses on OSX.) The extra linking to liblua (`-llua`) is definitely suspicious. Philipp