|
Make sure that the main program (/usr/local/bin/lua?) has not been stripped of its global symbols, they're need to link the dynamic library into the interpreter. Use 'strip -x' if you want to reduce the size of the lua binary. Do not use 'install -s' or 'strip' without flags. I've appended a Makefile I use to build a dynamic library. The magic incantations are stolen from luasocket Makefiles. Hope this helps. Gé CFLAGS=-pedantic -fno-common -O2 -Wall LDFLAGS=-bundle -undefined dynamic_lookup CC=gcc LD=export MACOSX_DEPLOYMENT_TARGET="10.4"; gcc tlv.so: tlv.o $(LD) $(LDFLAGS) $< -o $@ tlv.o: tlv.c %.o: %.c $(CC) $(CFLAGS) -c $< -o $@ On Jan 21, 2007, at 3:13 PM, Wesley Smith wrote:
-- Gé Weijers |