I copied the rule for libpike.so, making it
$(TMP_BINDIR)/smartlink "$(LDSHARED)" $(LDFLAGS) -o libOCpike.@SO@ \ OCPikeInterpreter.o $(OBJ) `cat modules/linker_options @STATIC_POST_MODULES_LINKOPTS@` \ $(LIBS);
This gives me a shared library which almost does the trick. However, there are some unresolved symbols still:
/tmp/libOCpike.so: undefined reference to `__gnu_objc_personality_v0' /tmp/libOCpike.so: undefined reference to `objc_exception_throw'
Hmm...