- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
Any gotchas or tips on how to build a shared object library that has no dynamic library dependencies beyond just openmp?
In other words, I want to use both the -shared and -static-intel flags when making this library.
While it seems to work, and ldd shows that the produced .so should not try to link against libimf.so etc., it still tries to at runtime... I recall reading somewhere that one should not mix -shared and -static-intel. If so, is there a workaround? It would be quite useful to be able to ship a shared object with as few as possible external dependencies...
thanks!
Marcus
Any gotchas or tips on how to build a shared object library that has no dynamic library dependencies beyond just openmp?
In other words, I want to use both the -shared and -static-intel flags when making this library.
While it seems to work, and ldd shows that the produced .so should not try to link against libimf.so etc., it still tries to at runtime... I recall reading somewhere that one should not mix -shared and -static-intel. If so, is there a workaround? It would be quite useful to be able to ship a shared object with as few as possible external dependencies...
thanks!
Marcus
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi again,
It seems using the -shared and -static-intel flags works, so I think this issue can be closed.
However I am a bit worried about the statement in the release notes for the Intel C++ compiler 11.0 where it explicitly says that the "-shared" and "-static-intel" flags are mutually exclusive. I am kind of assuming that this was a temporary bug in the 11.0 version of the compiler, and that this is no longer an issue (I am using v12 - e.g. the new Composer XE compiler).
Marcus
It seems using the -shared and -static-intel flags works, so I think this issue can be closed.
However I am a bit worried about the statement in the release notes for the Intel C++ compiler 11.0 where it explicitly says that the "-shared" and "-static-intel" flags are mutually exclusive. I am kind of assuming that this was a temporary bug in the 11.0 version of the compiler, and that this is no longer an issue (I am using v12 - e.g. the new Composer XE compiler).
Marcus

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