I have a program, myprogram, which is linked with a static convenience library, call it libconvenience.a, which contains a function, func()>
myprogram
libconvenience.a
func()>
If you need func to be in plugin.so, you should try and locate it there if possible. Convenience libraries are meant to be just that -- a convenience to link to an executable or lib as an intermediate step.