The biggest problem is that I can't change how the in-house programmers compile (well, link) their code.
That is indeed a big problem. Your in-house programmers should be using make
(or a similar automated build system), and the change would be trivial.
There is no way to achieve what you want on an arbitrary UNIX system.
IF you are using GNU toolchain, and in particular GNU-ld or gold
, THEN you can achieve what you want by linking with libcluracan.so
, where libcluracan.so
is not a shared library, but a linker script, which looks like this:
GROUP ( libcluracan.a libfltk.so )