How to build OF to a shared library ( dynamic library )?

I have programmed some OF applications, and deploy them onto the same machine which runs Linux64 OS. The problem is, all those apps are linked against the static OF library ‘libopenframeworks.a’, which causes quite a lot of redundant binaries and makes apps too big.

I have done quite a lot search, failing to find a way to build OF as a dynamic library. Could you guys give some hints ? Thanks !

There is some info on this thread:

I’ve already checked that post, but not much useful stuff found.

I am wondering where are those ‘flags’ …

Maybe this is useful?