I’d like to provide a Linux RPM for the x86_64 (64-bit) architecture for the software I’m working on. The Portland compilers work great when compiling for source - but for the RPM I need to be able to create a shared object that is statically linked with Portland libraries (i.e. libpgc.a) so that users don’t need libpgc.so on their system.
The current error I get when I try to link directly with libpgc.a is
/usr/bin/ld: /usr/local/pgi/linux86-64/5.2/lib/libpgc.a(va_arg.o): relocation R_X86_64_32 can not be used when making a shared object; recompile with -fPIC
Is there a way to get the static pgcc libraries compiled with fPIC? Or any other advice on how I can link the static libraries with my shared object? I can’t use the portability package since it is not yet available for 64-bit architectures.
Thanks in advance.