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]
Other format: [Raw text]

Re: problem creating a static library


> -fexport-coalesced with the 3.3 compiler, if you had to do this with
> the gcc2 compiler, sed 's/private_extern/globl/'...  :-(

could you explain me a little more how to do that last line?
  I have not understood this exactly what should I do here?
  Sorry my level of unix is not very good.
 I must do it with the gcc2 compiler.
 Thanks a lot


----- Original Message ----- 
From: "Mike Stump" <mrs@apple.com>
To: "Danilo José" <danilo.guerrero@deimos-space.com>
Cc: <gcc@gcc.gnu.org>
Sent: Friday, October 01, 2004 2:35 AM
Subject: Re: problem creating a static library


> On Sep 30, 2004, at 5:12 PM, Danilo José wrote:
> >   And what happens is that I get still 4 undefined symbols:
> >
> >  ___Q23golt13ObjAppendList1ZPQ23gol14CalcBinderDatalPCPB1
> > ___Q23golt13ObjAppendList1ZblPCb
> > ___ls__Q23golt13ObjAppendList1ZPQ23gol14CalcBinderDataRCPB1
> > ___ls__Q23golt13ObjAppendList1ZbRCb
>
> :-(
>
> >   The .s files I do not think it will be a good approach, because I
> > need to
> > deliver this makefile to build the libgol.a, so others could use it.
>
> You misunderstand.  You can do
>
> gcc foo.c -S; sed 's/notoc,//' <foo.s >foo1.s; gcc foo1.s -o foo.o
>
> if you wanted in the makefile, not the mot pleasant of things to do,
> but not that hard either.
>
> >   As far as I know the problem with this is that it has the flag 's'
> > if it
> > were 'S' it would work. So is there any way to get the 'S' flag, with a
> > makefile.
>
> -fexport-coalesced with the 3.3 compiler, if you had to do this with
> the gcc2 compiler, sed 's/private_extern/globl/'...  :-(
>


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