problem creating a static library

Mike Stump mrs@apple.com
Fri Oct 1 01:15:00 GMT 2004


On Sep 30, 2004, at 6:05 PM, Danilo José wrote:
>> -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.

>> gcc foo.c -S; sed 's/notoc,//' <foo.s >foo1.s; gcc foo1.s -o foo.o

Combining the two, we get:

gcc foo.c -S; sed 's/private_extern/globl/' <foo.s >foo1.s; gcc foo1.s 
-o foo.o

Further help with basic makefiles and basic unix commands are well 
beyond the scope of this list...



More information about the Gcc mailing list