This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: problem creating a static library
- From: Danilo José <danilo dot guerrero at deimos-space dot com>
- To: "Mike Stump" <mrs at apple dot com>
- Cc: <gcc at gcc dot gnu dot org>
- Date: Fri, 1 Oct 2004 03:05:46 +0200
- Subject: Re: problem creating a static library
- References: <009f01c4a64e$1e562b00$420216ac@deimosspace.com> <3DAC1DD3-124D-11D9-9765-000393941EE6@apple.com> <007201c4a6dc$183726a0$420216ac@deimosspace.com> <ACAEB5CE-1317-11D9-9765-000393941EE6@apple.com> <017601c4a72d$8e092f30$420216ac@deimosspace.com> <300B34F6-132C-11D9-9765-000393941EE6@apple.com> <01ae01c4a74b$47642df0$420216ac@deimosspace.com> <DD1F69B4-1341-11D9-9765-000393941EE6@apple.com>
> -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/'... :-(
>