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
- X-seq: zsh-workers 17062
- From: Borsenkow Andrej <Andrej.Borsenkow@xxxxxxxxxxxxxx>
- To: Peter Stephenson <pws@xxxxxxx>
- Subject: Re: zsh 4.0.4 on Solaris 2.6, shared (dynamic) library issues
- Date: 02 May 2002 14:21:07 +0400
- Cc: Zsh hackers list <zsh-workers@xxxxxxxxxx>, "John H. Robinson, IV" <jhriv@xxxxxxxx>
- In-reply-to: <24495.1020333270@xxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <24495.1020333270@xxxxxxx>
В Чтв, 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.
-andrej
Messages sorted by:
Reverse Date,
Date,
Thread,
Author