I have a simple C++ library which uses a short autoconf, automake and libtool to build a shared library object.
Now I want to be able to dynamically compile new code at run-time in my program, by:
- Output code to a temporary file (say /tmp/code.cc)
- Compile to a library
- Dynamically load code.so into my code
I want to find the commands I need to run to do this. I can see the commands used by running 'make -n', but I really don't want to try using awk to search and replace bits of these commands!