From patchwork Fri Dec 9 17:41:32 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Senkevich X-Patchwork-Id: 18332 Received: (qmail 73971 invoked by alias); 9 Dec 2016 17:42:15 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 73464 invoked by uid 89); 9 Dec 2016 17:42:14 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.3 required=5.0 tests=AWL, BAYES_00, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, RCVD_IN_SORBS_SPAM, SPF_PASS autolearn=no version=3.3.2 spammy=HX-Envelope-From:sk:andrew. X-HELO: mail-ua0-f196.google.com X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=ir08pE1RGoKb74+yjJotuSC01W/qpnbVQyDBCkVBvxE=; b=kcgbMoibh9qJqaflItY/Yz6kgYcH+5yojhew0sf3ZLdcmrnM0+8HFdlwOaDMD7tAU7 XrcLSR/EGvaeUp6kha2AGSqmamjcf+4PI8I8IXDjL4V8XVZMZSmtpu39dcVw0oFm+okj wk1Mj83Pz8ydNFnz/KETHnS86LjzS69IinHACYnRuWRCl2VuJMsGwEl8DzByt5ZO/P0z BcYknk1yTCfvUn6ejEq85Kki7dQuB5NiGp6gw18ljKWCd1e8doQWu4umxrTJ45M2qfHe r440Hlxb5ZHQIfx5m4UpqFVdHGEl6R+8nV1e36umlIq6962sTJctBPC3p1A6ighpU6C0 05Tw== X-Gm-Message-State: AKaTC03DqZz+EDPNDmJqnmU2oorMIpc2rVaB0azIsyXMNTLvPzXkHZpWjjOHKCC51JQGH5GujULFgyjzs3I1Hw== X-Received: by 10.176.86.23 with SMTP id y23mr50051020uaa.88.1481305322889; Fri, 09 Dec 2016 09:42:02 -0800 (PST) MIME-Version: 1.0 In-Reply-To: <87h96dru2a.fsf@linux-m68k.org> References: <87h96dru2a.fsf@linux-m68k.org> From: Andrew Senkevich Date: Fri, 9 Dec 2016 20:41:32 +0300 Message-ID: Subject: Re: [PATCH] Install libm.a as linker script [BZ #20539] To: Andreas Schwab Cc: "H.J. Lu" , libc-alpha 2016-12-09 18:38 GMT+03:00 Andreas Schwab : > On Dez 07 2016, Andrew Senkevich wrote: > >> +$(inst_libdir)/libm.a: $(common-objpfx)format.lds \ >> + $(libm) \ >> + $(libmvec) \ >> + $(+force) >> + (echo '/* GNU ld script'; echo '*/';\ >> + cat $<; \ >> + echo 'GROUP ( $(libdir)/libm-$(lib-version).a $(libdir)/libmvec.a )' \ >> + ) > $@.new >> + cp $(objpfx)libm.a $(inst_libdir)/libm-$(lib-version).a > > A rule should only create the target, nothing else. Is the following update Ok? before-compile += $(objpfx)libm-test.c @@ -208,6 +207,10 @@ $(objpfx)libm-test.stmp: $(ulps-file) libm-test.inc gen-libm-test.pl \ $(PERL) gen-libm-test.pl -u $< -o "$(objpfx)" $(SHELL) gen-libm-have-vector-test.sh > $(objpfx)libm-have-vector-test.h @echo > $@ + +$(objpfx)copy-libm.a.stmp: $(objpfx)libm.a + cp $(objpfx)libm.a $(inst_libdir)/libm-$(lib-version).a + @echo > $@ endif libm-test-fast-math-cflags = -fno-builtin -D__FAST_MATH__ -DTEST_FAST_MATH --- WBR, Andrew diff --git a/math/Makefile b/math/Makefile index 49556f6..ebbb8ee 100644 --- a/math/Makefile +++ b/math/Makefile @@ -144,14 +144,13 @@ $(inst_libdir)/libm.so: $(common-objpfx)format.lds \ mv -f $@.new $@ $(inst_libdir)/libm.a: $(common-objpfx)format.lds \ - $(libm) \ - $(libmvec) \ + $(objpfx)copy-libm.a.stmp \ + $(objpfx)../mathvec/libmvec.a \ $(+force) (echo '/* GNU ld script'; echo '*/';\ cat $<; \ echo 'GROUP ( $(libdir)/libm-$(lib-version).a $(libdir)/libmvec.a )' \ ) > $@.new - cp $(objpfx)libm.a $(inst_libdir)/libm-$(lib-version).a mv -f $@.new $@ endif @@ -193,7 +192,7 @@ libm-vec-test-wrappers = $(addsuffix -wrappers, $(libm-vec-tests)) test-extras += $(libm-vec-test-wrappers) extra-test-objs += $(addsuffix .o, $(libm-vec-test-wrappers)) libm-tests-generated = libm-test-ulps.h libm-have-vector-test.h libm-test.c -generated += $(libm-tests-generated) libm-test.stmp +generated += $(libm-tests-generated) libm-test.stmp copy-libm.a.stmp # This is needed for dependencies