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: [BZ #14569] ibpthread.a isn't linked in properly


On Tue, Oct 9, 2012 at 2:19 PM, Roland McGrath <roland@hack.frob.com> wrote:
>> This patch places libpthread.a before libc.a between -start-group and
>
> Two dashes (error repeated in your comment).
>
>> --end-group.  It also removes the duplicated $(link-libc-static),
>> which is included in $(+link-static), and +link-static-tests uses
>> $(link-libc-static-tests), not $(link-libc-static).  Tested on x86-64.
>> OK to install?
>
> This seems reasonable but you haven't said what it's fixing.

It follows the same order as gcc:

# /usr/gcc-4.7.2-x32/bin/gcc -v -pthread x.c -static
...
 /usr/gcc-4.7.2-x32/libexec/gcc/x86_64-unknown-linux-gnu/4.7.2/collect2
-m elf_x86_64 -static /lib/../lib64/crt1.o /lib/../lib64/crti.o
/usr/gcc-4.7.2-x32/lib/gcc/x86_64-unknown-linux-gnu/4.7.2/crtbeginT.o
-L/usr/gcc-4.7.2-x32/lib/gcc/x86_64-unknown-linux-gnu/4.7.2
-L/usr/gcc-4.7.2-x32/lib/gcc/x86_64-unknown-linux-gnu/4.7.2/../../../../lib64
-L/lib/../lib64 -L/usr/lib/../lib64
-L/usr/gcc-4.7.2-x32/lib/gcc/x86_64-unknown-linux-gnu/4.7.2/../../..
/tmp/ccwh7Vkx.o --start-group -lgcc -lgcc_eh -lpthread -lc --end-group
/usr/gcc-4.7.2-x32/lib/gcc/x86_64-unknown-linux-gnu/4.7.2/crtend.o
/lib/../lib64/crtn.o


-- 
H.J.


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