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


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...


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