This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: use +z to recompile
- From: Andrew Pinski <pinskia at physics dot uc dot edu>
- To: "pwatson at creighton dot edu" <pwatson at creighton dot edu>
- Cc: "Gcc (E-mail)" <gcc at gcc dot gnu dot org>
- Date: Wed, 13 Mar 2002 14:33:09 -0500
- Subject: Re: use +z to recompile
use -pic instead, this is ld complaining but it gives you the options
for the compiler that your OS.
Thanks,
Andrew Pinski
On Wednesday, March 13, 2002, at 02:22 , Pat Watson wrote:
> Hi,
>
> I am using gcc to create a shared object. I am receiving this error:
> /bin/ld: DP relative code in file mesg.o - shared library must be
> position independent. Use +z or +Z to recompile.
>
> How do I use +z or +Z to recompile?
>
> Pat Watson
> Administrative Computing Email: pwatson@creighton.edu
> Creighton University Phone: (402)280-2324
> 2500 California Plaza Fax: (402)280-2573
> Omaha, NE
> 68178-0046 USA
>
>
>