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 #5784: Build libpthread.a with ld -r


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


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