From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matt Schalit To: "H . J . Lu" Cc: Philip Blundell , Alexandre Oliva , Mark Mitchell , binutils@sources.redhat.com, gcc@gcc.gnu.org Subject: Re: Wrong dynamic-linker used on Solaris 7/x86 Date: Tue, 22 May 2001 10:08:00 -0000 Message-id: <3B0A9C49.69932D97@pacbell.net> References: <20010520102530Z.mitchell@codesourcery.com> <20010520164437.B30458@lucon.org> <20010521085436.B16556@lucon.org> X-SW-Source: 2001-05/msg01093.html "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