This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
help with gcc
- From: steve goodwin <sgoodwin at us dot dhl dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Tue, 25 Jun 2002 14:03:33 -0700
- Subject: 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