This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: building shared libs with g++ 2.95.2 on HP-UX 11
- To: Martin Sebor <sebor at roguewave dot com>
- Subject: Re: building shared libs with g++ 2.95.2 on HP-UX 11
- From: Alexandre Oliva <aoliva at redhat dot com>
- Date: 09 Sep 2000 21:12:26 -0300
- Cc: gcc bug reports <gcc-bugs at gcc dot gnu dot org>
- Organization: GCC Team, Red Hat
- References: <39BACA11.DC10F18B@roguewave.com>
On Sep 9, 2000, Martin Sebor <sebor@roguewave.com> wrote:
> $ echo "void foo () { }" > t.cpp ; gcc -c -fPIC t.cpp && gcc t.o -shared
> -o libt.sl
> /usr/bin/ld: DP relative code in file /var/tmp/ccyhoDuR.o - shared
> library must be position
> independent. Use +z or +Z to recompile.
Use -fPIC when linking too, so that the C file implicitly compiled by
collect is compiled with -fPIC too.
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist *Please* write to mailing lists, not to me