This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: PATCH: [BZ #14569] ibpthread.a isn't linked in properly
- From: "H.J. Lu" <hjl dot tools at gmail dot com>
- To: Roland McGrath <roland at hack dot frob dot com>
- Cc: GNU C Library <libc-alpha at sourceware dot org>
- Date: Tue, 9 Oct 2012 14:24:26 -0700
- Subject: Re: PATCH: [BZ #14569] ibpthread.a isn't linked in properly
- References: <20120911011350.GA31692@intel.com><20121009211932.27A092C0A7@topped-with-meat.com>
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.