This is the mail archive of the egcs@egcs.cygnus.com mailing list for the EGCS project. See the EGCS home page for more information.


[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index] [Subject Index] [Author Index] [Thread Index]

Re: Created shared libraries on Solaris 2.6/SPARC and -mimpure-text



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