Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: zsh 4.0.4 on Solaris 2.6, shared (dynamic) library issues

В Чтв, 02.05.2002, в 13:54, Peter Stephenson написал:
> "John H. Robinson, IV" wrote:
> > eventually, i found the problem in the configure script: it thinks that
> > the proper flag for shared libraries is a -G, however, for my version of
> > gcc
> > 
> > [jhriv@chao:~]% gcc --version
> > 2.95.2
> > 
> >     the proper flag is -shared.
> Odd, because we have gcc 2.95.2 on this Solaris 2.6 system (OS is given
> by gcc as sparc-sun-solaris2.6) and it accepts -G and produces shared
> libraries without any extra effort.  Have a look in the specs file,
> whose location is given by gcc -v.  I have some hieroglyphics after
> `*link:' which include `%{G:-G}', which I think means `accept the option
> -G during the linker phase and passes it down to the linker itself as
> -G'.

Actually proper fix would have been to check if we use GNU ld (or GNU C)
as linker and adjust flags accordingly. This has been mentioned a while
back. But I am not sure how to do it in clean way.


Messages sorted by: Reverse Date, Date, Thread, Author