Created shared libraries on Solaris 2.6/SPARC and -mimpure-text
Alexandre Oliva
oliva@dcc.unicamp.br
Mon Mar 1 09:03:00 GMT 1999
On Feb 28, 1999, Niall Smart <nsmart@kira.team400.ie> wrote:
> gcc -shared -mimpure-text foo.so bar.so -o libfeh.so
> Should I need -mimpure-text here?
I don't think so.
> If I leave it out I get lots of
> undefined symbols in libstdc++ and other places, should I be -l'ing
> against some libraries which I am not or is it simply necessary to
> use -mimpure-text when building shared objects on Solaris?
Maybe you should use `g++ -shared' instead.
Which linker are you using (i.e., what does `gcc -print-prog-name=ld' print)?
--
Alexandre Oliva http://www.dcc.unicamp.br/~oliva aoliva@{acm.org,computer.org}
oliva@{dcc.unicamp.br,gnu.org,egcs.cygnus.com,samba.org}
Instituto de Computação, Universidade Estadual de Campinas, SP, Brasil
More information about the Gcc
mailing list