- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi there.
I am working with shared libraries (*.so files) recently migrated from Solaris to Linux.
In Solaris environment, we used Sun C++ compiler and our makefiles included -norunpath option.
In this way, we could use libraries in every environment regardless of path.
Does anybody know how to reproduce this option with Intel C++ compiler?
I have read the icc help but haven't found any similar option.
Thank you in advance.
Best regards.
Camilo.
I am working with shared libraries (*.so files) recently migrated from Solaris to Linux.
In Solaris environment, we used Sun C++ compiler and our makefiles included -norunpath option.
In this way, we could use libraries in every environment regardless of path.
Does anybody know how to reproduce this option with Intel C++ compiler?
I have read the icc help but haven't found any similar option.
Thank you in advance.
Best regards.
Camilo.
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
This is a feature of the linker, not the compiler. There's no Linux equivalent to this because the default GNU linker (ld) behavior is to not embed library paths into the executable which is what the -norunpath option does for you on Solaris. The GNU linker option to embed paths is -rpath. You can simply remove the -norunpath option for your Linux build.
This Solaris to Linux Porting guide from HP might be useful.
This Solaris to Linux Porting guide from HP might be useful.

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