When I tried to build a simple shared library using static link to intel fortran libraries, I got relocation problem:
ifort -fPIC test.f90 -shared -static-intel -o libtest.so
ld: /scratch/ifort64/composer_xe_2013.1.117/compiler/lib/intel64/libifcore.a(for_wseq_lis.o): relocation R_X86_64_32 against `.rodata.str1.4' can not be used when making a shared object; recompile with -fPIC /scratch/ifort64/composer_xe_2013.1.117/compiler/lib/intel64/libifcore.a: could not read symbols: Bad value
It seems the ifort tried to link libifcore.a not libifcore_pic.a; I am using composer xe 2013.1.117 intel64
Any idea about this problem?