Simple shared library which defines main
and calls a function from
the main program.
There aren't many reasons to do this, but this is to show that it's possible.
Call make
. This is tested on linux only. I couldn't figure out the
right options to ld on MacOS to make it stop whine about undefined
symbols in shared libraries.