This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Wrong dynamic-linker used on Solaris 7/x86


"H . J . Lu" wrote:
> 
> On Mon, May 21, 2001 at 07:50:05AM +0100, Philip Blundell wrote:
> > >When we fixed gcc/binutils a few years ago, "gcc -v" no longer worked
> > >under Linux due to the assembler change. We fixed gcc and patched the
> > >specs file for the existing gcc. What is wrong with that? I doubt there
> > >are more Solaris/x86 using gcc today than Linux/x86 5 years ago.
> >
> > Well, it's a slightly different situation: Solaris has a vendor-provided
> > linker, and if we want GNU ld to be a drop-in replacement for that linker it
> > has to use the same defaults.  Especially as Solaris ld doesn't apparently
> > accept the `--dynamic-linker' option, and GNU ld doesn't currently accept -I.
> 
> Then add -I to ld. We had the similar problem with as when we moved
> to ELF. This is in gcc 2.7.2.3:
> 
> #undef ASM_SPEC
> #define ASM_SPEC \
>   "%{V} %{v:%{!V:-V}} %{Qy:} %{!Qn:-Qy} %{n} %{T} %{Ym,*} %{Yd,*} %{Wa,*:%*}"
> 
> This is in gcc today:
> 
> #define ASM_SPEC \
>   "%{v:-V} %{Qy:} %{!Qn:-Qy} %{n} %{T} %{Ym,*} %{Yd,*} %{Wa,*:%*}"
> 
> People who use my new Linux binutils and gcc 2.7.2.3 have to patch
> the gcc source or the specs file. Otherwise, "gcc -V" won't work.
> 
> H.J.




Sir:

Please excuse my jumping in.

But this is my exact problem with SCO's native as and building 
every gcc from 2.95.2 thru 3.1 on UnixWare 7.1.1.

If I try to build gcc using ./configure --with-gnu-as --with-as=/usr/local/bin/as
the gmake bootstrap fails with

     /usr/local/bin/as: Unknown option: -Qy.


Please, how do I fix this?  It's been a thorn for months now.
Thank you!
Matthew


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]