Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
Welcome to the Intel Community. If you get an answer you like, please mark it as an Accepted Solution to help others. Thank you!
26755 Discussions

include compiler's library automatically

Yu__Wenbin
Beginner
121 Views

I need to compile a dynamic library *.so. However, when I release it to others it complains missing some compiler related libraries such as libifcore.so.5 etc. Which flag I should use to have those needed libraries included automatically. Currently I have 

ifort -shared -g -heap-arrays  $(OBJS) -o  mylibrary.so

Thanks a lot!

0 Kudos
4 Replies
Steve_Lionel
Black Belt Retired Employee
121 Views

-static-intel links to the Intel static libraries. -static links all libraries statically, including gcc.

Yu__Wenbin
Beginner
121 Views

Thanks a lot. How about for Windows? 

Yu__Wenbin
Beginner
121 Views

I just found out for windows -static works, but not -static-intel

Steve_Lionel
Black Belt Retired Employee
121 Views

For Windows, you want /MT or /libs:static

 

Reply