[PATCH] BZ #5784: Build libpthread.a with ld -r
Joseph S. Myers
joseph@codesourcery.com
Wed Sep 5 19:15:00 GMT 2012
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
More information about the Libc-alpha
mailing list