Although the OP solved its problem by answering another question, there are (at least) two ways to wedge a shared library into your binary in case
- missing source code
- missing compiler (or assembly chain)
- static link not working or unclear how to do it
- to save the memory layout - a static link will change it and hidden errors may “wake up”
- for the "permalink" LD_PRELOAD library to the executable
The first is a statifier (open source, but limited to x86 and x86_64 and only object code)
The second thing I know is the magic ermine (by the same developer). This is a closed source, but the developer is friendly to open source projects, and ermine has the advantage of supporting more platforms, as well as the ability to include all the necessary data files in its virtual file system.
http://statifier.sourceforge.net/ and http://www.magicermine.com/
source share