This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

help with gcc


I am trying to compile some ansi C source on a HPUX 10.20 system.

The HP ansi C compiler uses the +z option to create position independent code. I have tried using -shared, -fpic -fPIC but I still get the following message from the linker:

ld: DP relative code in file API_test_fns.o - shared library must be position
independent. Use +z or +Z to recompile

Any idea how to get position independent code from gcc?

Thanks for your help

Steve



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]