- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.)
Thanks
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Regarding 1: -i_dynamic (the underscore form) was a option spelling used many many releases ago that was later mapped to -i-dynamic (the hyphen form) and then that form was depreciated in more current releases and it now maps to -shared-intel
Testing under our current Composer XE 2013 SP1 Update 1 release, all form appear to perform the same action of linking shared Intel libraries.
Regarding 2: If I'm reading correctly, the interest is having libfoo.so built using the Intel compiler and it having all Intel specific dependencies resolved in shared version of Intel specific libs. If so, then yes, that is what the -shared-intel option is designed to do. I don't know of other options required. When building shared libraries and using this option, it sometimes was necessary to specify -mcmodel=medium to deal with relocations errors like Symbol ‘<symbol name>’ causes overflow in R_X86_64_PC32. I don't whether that is needed in all cases.
Sorry for overlooking your earlier post. I'll go back and review it now.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
No worries about the previous post.
Thanks for the response.

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page