From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 43245 invoked by alias); 6 Nov 2017 14:09:34 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Received: (qmail 42429 invoked by uid 89); 6 Nov 2017 14:09:33 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-24.9 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,GIT_PATCH_0,GIT_PATCH_1,GIT_PATCH_2,GIT_PATCH_3,RCVD_IN_DNSWL_NONE,RCVD_IN_SORBS_SPAM,SPF_PASS autolearn=ham version=3.3.2 spammy=U*$, Hx-languages-length:1393, csu X-HELO: mail-oi0-f65.google.com X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=RnqdZ/bydXpVgIiL9SPblOXn6rLiQ6zHIsh6SKjkauI=; b=a7EkUA3P9Usl7hq+0m6qgDrZySjf60HvrY+00NCOaEALH8QF3MjuKixqmX+uSxoCnS 4c8eU6/ABdx45kSpqi1j1agjjjrLfZGfNFSSRrURo+8X66ixVUU0A59igSWXb4Q+5wXO DnHNw7rBIP+N8kDOs0fGbmI6FanoCGSws/cQoEt1HcpPVr6NxH4v4M+thBajngwhX3Bg ZxOYizvW9EfBOLROXngRMFHSp1mVseEuHFA7jQYcc3IKd9FiTuCnzePqjzSUVsx+Jk16 y1GHkdMhdXljZbvxQJJ7afaytMzh8XnX+LCLyj/8rBDgKuzA6mAIWzgFIo6Q5zsc86TB 5VZA== X-Gm-Message-State: AMCzsaUE1d+aw7myw4xRK6z365ipJyOs7bw2adwP9kPeOtHNTdOTUWWP qvDerbv7Nb6g09Ed509fFw/YDEjhbxtvnMKIpLs= X-Google-Smtp-Source: ABhQp+Th3GUhLKDFBAEGsZrJQhDpPiFrBssVDXniKOdZOS/ubr5UbtQyq83Tg8a/LibNt1O1TMvGt5N0duEa50e86JY= X-Received: by 10.202.244.210 with SMTP id s201mr8228989oih.185.1509977370451; Mon, 06 Nov 2017 06:09:30 -0800 (PST) MIME-Version: 1.0 In-Reply-To: References: <20171029020657.GA13103@gmail.com> <87y3nuku8a.fsf@linux-m68k.org> From: "H.J. Lu" Date: Mon, 06 Nov 2017 14:09:00 -0000 Message-ID: Subject: Re: [PATCH] Use newly built crt*.o files to build shared objects [BZ #22362] To: Andreas Schwab Cc: GNU C Library Content-Type: text/plain; charset="UTF-8" X-SW-Source: 2017-11/txt/msg00180.txt.bz2 On Wed, Nov 1, 2017 at 7:43 AM, H.J. Lu wrote: > On Sun, Oct 29, 2017 at 9:21 AM, H.J. Lu wrote: >> On Sun, Oct 29, 2017 at 5:35 AM, Andreas Schwab wrote: >>> On Okt 28 2017, "H.J. Lu" 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.