This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc 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: [patch] Fix for cyclic dependency between libc.a and libgcc.a


> I may not have understood your question correctly, if so apologies.
> 
>   echo "int main() { return 0; }" | gcc -xc - -static -v

That was indeed the question.

> results (on Ubuntu 10.04) in:

Just for sanity's sake, how about in unmodified trunk gcc?

>  /usr/lib/gcc/x86_64-linux-gnu/4.4.3/collect2 --build-id -m elf_x86_64 \
>     --hash-style=both -static ... /tmp/ccISUurC.o \
>     --start-group -lgcc -lgcc_eh -lc --end-group \
>     /usr/lib/gcc/x86_64-linux-gnu/4.4.3/crtend.o ...
> 
> which (AFAICT) is the same as what I am doing with this patch.

If that's indeed what mainline gcc does, this your change seems right to me.
The intent of those variables is to match what gcc does wrt libgcc, but
with our own local libc.a.


Thanks,
Roland


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