This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] BZ #5784: Build libpthread.a with ld -r
- From: "Joseph S. Myers" <joseph at codesourcery dot com>
- To: "H.J. Lu" <hjl dot tools at gmail dot com>
- Cc: GNU C Library <libc-alpha at sourceware dot org>
- Date: Wed, 5 Sep 2012 19:15:01 +0000
- Subject: Re: [PATCH] BZ #5784: Build libpthread.a with ld -r
- References: <20120905181207.GA16550@intel.com>
On Wed, 5 Sep 2012, H.J. Lu wrote:
> +$(objpfx)libpthread.a: $(patsubst %,$(objpfx)%.o,\
> + $(filter-out $(libpthread-shared-only-routines),\
> + $(all-libpthread-routines)))
> + cd $(objpfx) && \
> + $(CC) -r -nostdlib -o $(@:$(objpfx)%=%) $(patsubst $(objpfx)%,%,$^)
This looks rather like it builds libpthread.a as an object file ... it
would seem safer for it to be an archive containing a single object file,
rather than directly being an object file itself.
--
Joseph S. Myers
joseph@codesourcery.com