I have a project involving
mylib.so
test_mylib
The solution recommended by the libtool docs is to use static linking during development, as I decribed at: Build libtool application with static linking to local components
To do this, use the --disable-shared option to the ./configure
script.
For example:
./configure --enable-debug --disable-shared
Now the generated executable is a directly executable binary rather than a libtool script.
This has the added benefit of roughly halving the build time.