This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] Use newly built crt*.o files to build shared objects [BZ #22362]
- From: "H.J. Lu" <hjl dot tools at gmail dot com>
- To: Andreas Schwab <schwab at linux-m68k dot org>
- Cc: GNU C Library <libc-alpha at sourceware dot org>
- Date: Mon, 6 Nov 2017 06:09:29 -0800
- Subject: Re: [PATCH] Use newly built crt*.o files to build shared objects [BZ #22362]
- Authentication-results: sourceware.org; auth=none
- References: <20171029020657.GA13103@gmail.com> <87y3nuku8a.fsf@linux-m68k.org> <CAMe9rOqhxkd2BCx4s0Ybn-KW1msT+RBw7Wx-ExCRpG-T7DiZEg@mail.gmail.com> <CAMe9rOp2JUmnVKSSia+Yx+Z=tt9JfcMW8a=QO-EYxH_9RV_P5w@mail.gmail.com>
On Wed, Nov 1, 2017 at 7:43 AM, H.J. Lu <hjl.tools@gmail.com> wrote:
> On Sun, Oct 29, 2017 at 9:21 AM, H.J. Lu <hjl.tools@gmail.com> wrote:
>> On Sun, Oct 29, 2017 at 5:35 AM, Andreas Schwab <schwab@linux-m68k.org> wrote:
>>> On Okt 28 2017, "H.J. Lu" <hjl.tools@gmail.com> wrote:
>>>
>>>> diff --git a/csu/Makefile b/csu/Makefile
>>>> index fd668a5d00..b9803be0ff 100644
>>>> --- a/csu/Makefile
>>>> +++ b/csu/Makefile
>>>> @@ -77,6 +77,11 @@ crtstuff = crti crtn
>>>> install-lib += $(crtstuff:=.o)
>>>> extra-objs += $(crtstuff:=.o)
>>>>
>>>> +ifneq ($(multidir),.)
>>>> +multilib-extra-objs = $(addprefix $(multidir)/, $(install-lib))
>>>> +extra-objs += $(multilib-extra-objs)
>>>> +endif
>>>> +
>>>> extra-objs += abi-note.o init.o
>>>> asm-CPPFLAGS += -I$(objpfx).
>>>>
>>>> @@ -147,3 +152,9 @@ $(objpfx)abi-tag.h: $(..)abi-tags
>>>> done
>>>> if test -r $@.new; then mv -f $@.new $@; \
>>>> else echo >&2 'This configuration not matched in $<'; exit 1; fi
>>>> +
>>>> +ifneq ($(multidir),.)
>>>> +$(addprefix $(objpfx)$(multidir)/, $(install-lib)): $(addprefix $(objpfx), $(install-lib))
>>>> + $(make-target-directory)
>>>> + ln -f $(objpfx)/$(@F) $@
>>>> +endif
>>>
>>> Only a symlink . -> $(multidir) is needed.
>>
>> Like this?
>>
>
> Any other comments or objections?
>
I am checking it in.
--
H.J.