Since there seems to be little interest in my other post, let me try to get to the core of the issue in a more succinct way:
- What does the -i_dynamic flag do? It doesn't seem to be documented in the man pages. Is it equivalent to -shared-intel?
- In order that a stand alone executable program link against a shared library, say -lfoo, are there any additional flags required? (Assuming that the compiler can find the appropriate libfoo.so without any -L etc. flags.)